pub struct GetTradeByIdResponse {
pub data: Option<TradeData>,
pub event_type: Option<String>,
pub trading_mode: Option<String>,
pub trading_pair_id: Option<Uuid>,
}Expand description
A single trade.
JSON schema
{
"description": "A single trade.",
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/TradeData"
},
"eventType": {
"description": "Event type identifier",
"examples": [
"trade"
],
"type": [
"string",
"null"
]
},
"tradingMode": {
"description": "Trading mode: SPOT or MARGIN",
"examples": [
"SPOT"
],
"type": [
"string",
"null"
]
},
"tradingPairId": {
"description": "Trading pair UUID",
"examples": [
"456e7890-e12b-12d3-a456-426614174000"
],
"type": [
"string",
"null"
],
"format": "uuid"
}
}
}Fields§
§data: Option<TradeData>§event_type: Option<String>Event type identifier
trading_mode: Option<String>Trading mode: SPOT or MARGIN
trading_pair_id: Option<Uuid>Trading pair UUID
Trait Implementations§
Source§impl Clone for GetTradeByIdResponse
impl Clone for GetTradeByIdResponse
Source§fn clone(&self) -> GetTradeByIdResponse
fn clone(&self) -> GetTradeByIdResponse
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 GetTradeByIdResponse
impl Debug for GetTradeByIdResponse
Source§impl Default for GetTradeByIdResponse
impl Default for GetTradeByIdResponse
Source§impl<'de> Deserialize<'de> for GetTradeByIdResponse
impl<'de> Deserialize<'de> for GetTradeByIdResponse
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 GetTradeByIdResponse
impl RefUnwindSafe for GetTradeByIdResponse
impl Send for GetTradeByIdResponse
impl Sync for GetTradeByIdResponse
impl Unpin for GetTradeByIdResponse
impl UnsafeUnpin for GetTradeByIdResponse
impl UnwindSafe for GetTradeByIdResponse
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