pub struct OrderConfirmation {
pub code: i32,
pub msg: String,
}Expand description
Represents the confirmation status of a single order in a batch.
Details the success or failure of an individual order in a batch request. Bots use this to diagnose issues with specific orders and implement retry logic if needed.
Fields§
§code: i32The confirmation code for the order.
A 0 indicates success, while non-zero values indicate errors (e.g., 10001 for invalid parameters). Bots should check this to identify failed orders.
msg: StringA human-readable message describing the confirmation result.
Provides details about the order’s status, such as "OK" or an error description. Bots should log this for debugging and error handling.
Trait Implementations§
Source§impl Clone for OrderConfirmation
impl Clone for OrderConfirmation
Source§fn clone(&self) -> OrderConfirmation
fn clone(&self) -> OrderConfirmation
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OrderConfirmation
impl Debug for OrderConfirmation
Source§impl<'de> Deserialize<'de> for OrderConfirmation
impl<'de> Deserialize<'de> for OrderConfirmation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrderConfirmation
impl RefUnwindSafe for OrderConfirmation
impl Send for OrderConfirmation
impl Sync for OrderConfirmation
impl Unpin for OrderConfirmation
impl UnwindSafe for OrderConfirmation
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