pub enum PlatformMakerEvent {
AuthChallenge {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
challenge: String,
server_time_ms: u64,
expires_at_ms: u64,
},
MakerSnapshot {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
server_time_ms: u64,
status: PlatformMakerStatusResponse,
fills: Vec<PlatformMakerFill>,
},
MakerFill {
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: PlatformMakerFill,
},
MakerStatus {
schema_version: u16,
contract_version: String,
market_id: String,
wallet_address: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
status: PlatformMakerStatusResponse,
},
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,
},
}Expand description
Authenticated, sequenced owner-only maker stream (mm.fills.stream).
After the signed challenge the server sends one maker_snapshot, then
sequenced maker_fill, maker_status (exposure/product change), and
heartbeat events; a recovery snapshot advances the sequence on the same
stream identity.
Variants§
AuthChallenge
Fields
MakerSnapshot
MakerFill
Fields
§
fill: PlatformMakerFillMakerStatus
Fields
§
status: PlatformMakerStatusResponseHeartbeat
Trait Implementations§
Source§impl Clone for PlatformMakerEvent
impl Clone for PlatformMakerEvent
Source§fn clone(&self) -> PlatformMakerEvent
fn clone(&self) -> PlatformMakerEvent
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 PlatformMakerEvent
impl Debug for PlatformMakerEvent
Source§impl<'de> Deserialize<'de> for PlatformMakerEvent
impl<'de> Deserialize<'de> for PlatformMakerEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformMakerEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformMakerEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformMakerEvent
Source§impl PartialEq for PlatformMakerEvent
impl PartialEq for PlatformMakerEvent
Source§impl Serialize for PlatformMakerEvent
impl Serialize for PlatformMakerEvent
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 PlatformMakerEvent
Auto Trait Implementations§
impl Freeze for PlatformMakerEvent
impl RefUnwindSafe for PlatformMakerEvent
impl Send for PlatformMakerEvent
impl Sync for PlatformMakerEvent
impl Unpin for PlatformMakerEvent
impl UnsafeUnpin for PlatformMakerEvent
impl UnwindSafe for PlatformMakerEvent
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