Struct EngineEvent
pub struct EngineEvent {Show 13 fields
pub schema_version: u16,
pub run_id: Uuid,
pub seq: u64,
pub ts_utc: DateTime<Utc>,
pub mono_ns: u64,
pub event_id: Uuid,
pub correlation_id: Option<Uuid>,
pub strategy_id: Option<String>,
pub venue_id: Option<VenueId>,
pub instrument_id: Option<InstrumentId>,
pub payload: Payload,
pub prev_record_hash: Option<String>,
pub record_hash: Option<String>,
}Expand description
Event envelope wrapping every journaled record (JOURNAL_SPEC §5).
Fields§
§schema_version: u16Schema version (defaults to SCHEMA_VERSION when omitted).
run_id: UuidRun identifier.
seq: u64Monotonic, gap-free sequence number starting at 1.
ts_utc: DateTime<Utc>Wall-clock timestamp in UTC (observability only).
mono_ns: u64Monotonic nanoseconds since run start (ordering + latency).
event_id: UuidUnique identifier for this record.
correlation_id: Option<Uuid>Correlates event chains (intent → risk → exec → fill). Nullable.
strategy_id: Option<String>Originating strategy name/id. Nullable.
venue_id: Option<VenueId>Venue identifier. Nullable.
instrument_id: Option<InstrumentId>Instrument identifier. Nullable.
payload: PayloadEvent-type-specific payload.
prev_record_hash: Option<String>Hash of the previous record (JOURNAL_SPEC §10 — reserved, not yet populated).
record_hash: Option<String>Hash of this record (JOURNAL_SPEC §10 — reserved, not yet populated).
Trait Implementations§
§impl Clone for EngineEvent
impl Clone for EngineEvent
§fn clone(&self) -> EngineEvent
fn clone(&self) -> EngineEvent
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for EngineEvent
impl Debug for EngineEvent
§impl<'de> Deserialize<'de> for EngineEvent
impl<'de> Deserialize<'de> for EngineEvent
§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
§impl Serialize for EngineEvent
impl Serialize for EngineEvent
Auto Trait Implementations§
impl Freeze for EngineEvent
impl RefUnwindSafe for EngineEvent
impl Send for EngineEvent
impl Sync for EngineEvent
impl Unpin for EngineEvent
impl UnsafeUnpin for EngineEvent
impl UnwindSafe for EngineEvent
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)