pub struct EventBody {
pub root: ContentId,
pub origin: EventOrigin,
pub kind: EventKind,
pub payload: RawContentId,
pub seq: u64,
pub sources: BTreeSet<ContentId>,
pub depth: u32,
}Expand description
The addressed event body. Public fields are untrusted until admission.
Fields§
§root: ContentIdThe triggering crate::RootEvent, resolved by the storage layer.
origin: EventOriginOrigin of the material; retrieval and elision inherit it unchanged.
kind: EventKindThe operation and any operation-specific claim.
payload: RawContentIdRetained event payload bytes, verified by their storage consumer.
seq: u64Session-local occurrence ordinal, distinguishing identical observations.
sources: BTreeSet<ContentId>Derivation inputs, distinct from other causal antecedents.
depth: u32Claimed generation depth; admission recomputes it from resolved inputs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EventBody
impl<'de> Deserialize<'de> for EventBody
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 EventBody
impl StructuralPartialEq for EventBody
Auto Trait Implementations§
impl Freeze for EventBody
impl RefUnwindSafe for EventBody
impl Send for EventBody
impl Sync for EventBody
impl Unpin for EventBody
impl UnsafeUnpin for EventBody
impl UnwindSafe for EventBody
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