pub struct Event {
pub event_id: String,
pub event_version: String,
pub command_id: String,
pub command_hash: String,
pub run_id: String,
pub parents: Vec<String>,
pub reads: BTreeSet<String>,
pub writes: BTreeSet<String>,
pub coordination_key: Option<String>,
pub payload: EventPayload,
}Expand description
A canonical event.
Fields§
§event_id: StringContent-addressed event identity.
event_version: StringEvent schema version.
command_id: StringAdmitted command identity.
command_hash: StringCanonical command semantics digest.
run_id: StringRun identity.
parents: Vec<String>Explicit causal parents.
reads: BTreeSet<String>Logical point/predicate reads.
writes: BTreeSet<String>Logical writes.
coordination_key: Option<String>Optional non-monotone coordination domain.
payload: EventPayloadTrusted semantic transition.
Implementations§
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
impl Eq for Event
impl StructuralPartialEq for Event
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