pub enum PlatformOrderCommandEvent {
AuthChallenge {
schema_version: u16,
contract_version: String,
market_id: String,
challenge: String,
server_time_ms: u64,
expires_at_ms: u64,
},
Ready {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
server_time_ms: u64,
},
ProbeResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
nonce: String,
server_time_ms: u64,
},
ChallengeResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
self_trade_prevention: PlatformSelfTradePrevention,
prevented_order_ids: Vec<String>,
effective_request: PlatformOrderChallengeRequest,
response: PlatformOrderChallengeResponse,
server_time_ms: u64,
},
PrepareResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
response: PlatformOrderPrepareResponse,
server_time_ms: u64,
},
SubmitResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
response: PlatformOrderSubmitResponse,
server_time_ms: u64,
},
StatusResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
response: PlatformOrderStatusResponse,
server_time_ms: u64,
},
DeadManResult {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
state: PlatformDeadManState,
server_time_ms: u64,
},
CommandError {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
request_id: String,
error: PublicOperationError,
server_time_ms: u64,
},
Heartbeat {
schema_version: u16,
contract_version: String,
market_id: String,
stream_id: String,
sequence: String,
previous_sequence: String,
server_time_ms: u64,
},
}Expand description
One sequenced event emitted by the persistent order-control connection. After authentication, the transport carries bounded arrays of these events so concurrent results share frame overhead without weakening per-event sequence or request correlation. Terminal chain status may arrive later without blocking command submission.
Variants§
AuthChallenge
Fields
Ready
Fields
ProbeResult
Fields
ChallengeResult
Fields
§
self_trade_prevention: PlatformSelfTradePrevention§
effective_request: PlatformOrderChallengeRequest§
response: PlatformOrderChallengeResponsePrepareResult
Fields
§
response: PlatformOrderPrepareResponseSubmitResult
Fields
§
response: PlatformOrderSubmitResponseStatusResult
Fields
§
response: PlatformOrderStatusResponseDeadManResult
Fields
§
state: PlatformDeadManStateCommandError
Fields
§
error: PublicOperationErrorHeartbeat
Trait Implementations§
Source§impl Clone for PlatformOrderCommandEvent
impl Clone for PlatformOrderCommandEvent
Source§fn clone(&self) -> PlatformOrderCommandEvent
fn clone(&self) -> PlatformOrderCommandEvent
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 PlatformOrderCommandEvent
impl Debug for PlatformOrderCommandEvent
Source§impl<'de> Deserialize<'de> for PlatformOrderCommandEvent
impl<'de> Deserialize<'de> for PlatformOrderCommandEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformOrderCommandEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlatformOrderCommandEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlatformOrderCommandEvent
Source§impl Serialize for PlatformOrderCommandEvent
impl Serialize for PlatformOrderCommandEvent
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 PlatformOrderCommandEvent
Auto Trait Implementations§
impl Freeze for PlatformOrderCommandEvent
impl RefUnwindSafe for PlatformOrderCommandEvent
impl Send for PlatformOrderCommandEvent
impl Sync for PlatformOrderCommandEvent
impl Unpin for PlatformOrderCommandEvent
impl UnsafeUnpin for PlatformOrderCommandEvent
impl UnwindSafe for PlatformOrderCommandEvent
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