pub struct Event {
pub header: Header,
pub verb: String,
pub substrate: SubstrateKind,
pub actor: Option<String>,
pub kind: EventKind,
pub payload: EventPayload,
pub payload_schema_version: u32,
pub profile_state_version: Option<u64>,
pub aggregate: Option<AggregateRef>,
}Expand description
A system event. Append-only, never mutated or deleted.
Fields§
§header: Header§verb: StringThe verb that produced the event.
substrate: SubstrateKindWhich substrate type was acted upon.
actor: Option<String>Who performed the action. Profile- or system-produced events may omit it.
kind: EventKindTyped event discriminant used by replay, projections, and workers.
payload: EventPayloadTyped payload surface for known event families; raw JSON is still allowed.
payload_schema_version: u32Payload schema version interpreted per kind.
profile_state_version: Option<u64>Brain profile state version observed when the event was emitted.
aggregate: Option<AggregateRef>Logical aggregate threaded across related event ids.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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