pub enum PlatformAccountEvent {
AuthChallenge {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
challenge: String,
server_time_ms: u64,
expires_at_ms: u64,
},
AccountSnapshot {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
server_time_ms: u64,
orders: Vec<PlatformAccountOrder>,
fills: Vec<PlatformAccountFill>,
},
OrdersSnapshot {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
orders: Vec<PlatformAccountOrder>,
},
Fill {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
fill: PlatformAccountFill,
},
Heartbeat {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
},
}Variants§
AuthChallenge
Fields
AccountSnapshot
OrdersSnapshot
Fields
§
orders: Vec<PlatformAccountOrder>Fill
Fields
§
fill: PlatformAccountFillHeartbeat
Trait Implementations§
Source§impl Clone for PlatformAccountEvent
impl Clone for PlatformAccountEvent
Source§fn clone(&self) -> PlatformAccountEvent
fn clone(&self) -> PlatformAccountEvent
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 PlatformAccountEvent
impl Debug for PlatformAccountEvent
Source§impl<'de> Deserialize<'de> for PlatformAccountEvent
impl<'de> Deserialize<'de> for PlatformAccountEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformAccountEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformAccountEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformAccountEvent
Source§impl PartialEq for PlatformAccountEvent
impl PartialEq for PlatformAccountEvent
Source§impl Serialize for PlatformAccountEvent
impl Serialize for PlatformAccountEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlatformAccountEvent
Auto Trait Implementations§
impl Freeze for PlatformAccountEvent
impl RefUnwindSafe for PlatformAccountEvent
impl Send for PlatformAccountEvent
impl Sync for PlatformAccountEvent
impl Unpin for PlatformAccountEvent
impl UnsafeUnpin for PlatformAccountEvent
impl UnwindSafe for PlatformAccountEvent
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