pub struct PlaceOrderResultWithIdentity {
pub order_id: u64,
pub order_id_ex: String,
}Expand description
下单结果,包含参照版本同时返回的无损 backend identity。
这是 PlaceOrderResult 的 additive companion,避免给既有 public struct
直接增加字段而破坏外部调用者的结构体构造与解构源码兼容性。
Fields§
§order_id: u64§order_id_ex: StringBackend/server order identity returned by C++ as orderIDEx.
This string is the lossless identity for automation and is accepted by
modify/cancel helpers. Keep it alongside the C++ numeric projection so
JSON consumers never have to round-trip a u64 through IEEE-754.
Trait Implementations§
Source§impl Clone for PlaceOrderResultWithIdentity
impl Clone for PlaceOrderResultWithIdentity
Source§fn clone(&self) -> PlaceOrderResultWithIdentity
fn clone(&self) -> PlaceOrderResultWithIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlaceOrderResultWithIdentity
impl RefUnwindSafe for PlaceOrderResultWithIdentity
impl Send for PlaceOrderResultWithIdentity
impl Sync for PlaceOrderResultWithIdentity
impl Unpin for PlaceOrderResultWithIdentity
impl UnsafeUnpin for PlaceOrderResultWithIdentity
impl UnwindSafe for PlaceOrderResultWithIdentity
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more