pub struct WsTradeResponse {
pub req_id: Option<String>,
pub op: Option<String>,
pub ret_code: Option<i32>,
pub ret_msg: Option<String>,
pub success: Option<bool>,
pub conn_id: Option<String>,
pub data: Option<TradeResultData>,
}Expand description
Response for WS order operations.
Fields§
§req_id: Option<String>Request ID (matches the request)
op: Option<String>Operation type echoed back
ret_code: Option<i32>Return code (0 = success)
ret_msg: Option<String>Return message
success: Option<bool>Whether the operation succeeded
conn_id: Option<String>Connection ID
data: Option<TradeResultData>The result data
Trait Implementations§
Source§impl Clone for WsTradeResponse
impl Clone for WsTradeResponse
Source§fn clone(&self) -> WsTradeResponse
fn clone(&self) -> WsTradeResponse
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 moreSource§impl Debug for WsTradeResponse
impl Debug for WsTradeResponse
Source§impl<'de> Deserialize<'de> for WsTradeResponse
impl<'de> Deserialize<'de> for WsTradeResponse
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 WsTradeResponse
impl RefUnwindSafe for WsTradeResponse
impl Send for WsTradeResponse
impl Sync for WsTradeResponse
impl Unpin for WsTradeResponse
impl UnsafeUnpin for WsTradeResponse
impl UnwindSafe for WsTradeResponse
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