Enum Payload
pub enum Payload {
Show 17 variants
RunMeta(RunMeta),
ModeChange(ModeChange),
ConfigChange(ConfigChange),
Market(MarketEvent),
StrategyIntent(StrategyIntent),
RiskDecision(RiskDecision),
ExecutionCommand(ExecutionCommand),
ExecutionAck(ExecutionAck),
ExecutionReject(ExecutionReject),
Fill(Fill),
OrderState(OrderStateEvent),
Reconcile(Reconcile),
RiskState(RiskStateEvent),
Checkpoint(Checkpoint),
Heartbeat(Heartbeat),
VelocityGate(VelocityGateEvent),
DirectRetirement(DirectRetirementEvent),
}Expand description
Discriminated payload for each event type.
Variants§
RunMeta(RunMeta)
Run metadata. MUST be seq=1.
ModeChange(ModeChange)
Mode transition within a run (rare).
ConfigChange(ConfigChange)
Runtime config change.
Market(MarketEvent)
Canonical market data.
StrategyIntent(StrategyIntent)
Order intents emitted by strategies.
RiskDecision(RiskDecision)
Risk gateway evaluation of intents (pre-trade).
ExecutionCommand(ExecutionCommand)
Outbound command to exchange adapter.
ExecutionAck(ExecutionAck)
Venue acknowledgment (accepted/working).
ExecutionReject(ExecutionReject)
Venue rejection.
Fill(Fill)
Trade execution (partial/full).
OrderState(OrderStateEvent)
Explicit order state transition.
Reconcile(Reconcile)
Reconciliation action and result.
RiskState(RiskStateEvent)
Risk stop-state transition.
Checkpoint(Checkpoint)
Snapshot for accelerated replay.
Heartbeat(Heartbeat)
Health marker.
VelocityGate(VelocityGateEvent)
Velocity gate transition.
DirectRetirement(DirectRetirementEvent)
Marks a live order as retiring after a successful out-of-band direct cancel.
Trait Implementations§
§impl<'de> Deserialize<'de> for Payload
impl<'de> Deserialize<'de> for Payload
§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 Payload
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnsafeUnpin for Payload
impl UnwindSafe for Payload
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)