pub struct Event {
pub header: Header,
pub verb: String,
pub substrate: SubstrateKind,
pub actor: String,
pub outcome: EventOutcome,
pub data: Option<String>,
pub duration_us: u64,
pub target_id: Option<Id128>,
}Expand description
A system event. Append-only, never mutated or deleted.
Fields§
§header: Header§verb: StringThe verb that was executed (e.g., “create”, “search”, “traverse”).
substrate: SubstrateKindWhich substrate type was acted upon.
actor: StringWho performed the action (free-form actor string).
outcome: EventOutcomeOutcome of the verb execution.
data: Option<String>Optional verb-specific structured data (JSON in DB).
duration_us: u64Duration of the verb execution in microseconds.
target_id: Option<Id128>ID of the substrate record that was acted upon, if applicable.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
Source§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 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