pub struct PublicTrade {
pub data: Option<TradeData>,
pub event_type: Option<String>,
pub trading_mode: Option<String>,
pub trading_pair_id: Option<Uuid>,
}Expand description
A public trade event. Serializes to the REST envelope: { data: { … }, eventType, tradingPairId, tradingMode }. The WebSocket surface emits the equivalent envelope with snake_case keys.
JSON schema
{
"description": "A public trade event. Serializes to the REST envelope: { data: { ... }, eventType, tradingPairId, tradingMode }. The WebSocket surface emits the equivalent envelope with snake_case keys.",
"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 PublicTrade
impl Clone for PublicTrade
Source§fn clone(&self) -> PublicTrade
fn clone(&self) -> PublicTrade
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 PublicTrade
impl Debug for PublicTrade
Source§impl Default for PublicTrade
impl Default for PublicTrade
Source§impl<'de> Deserialize<'de> for PublicTrade
impl<'de> Deserialize<'de> for PublicTrade
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 PublicTrade
impl RefUnwindSafe for PublicTrade
impl Send for PublicTrade
impl Sync for PublicTrade
impl Unpin for PublicTrade
impl UnsafeUnpin for PublicTrade
impl UnwindSafe for PublicTrade
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