pub struct EventEnvelope {
pub seq: u64,
pub ts: DateTime<Utc>,
pub actor: String,
pub agent: Option<Agent>,
pub prev_sha256: Option<String>,
pub data: EventData,
}Expand description
One line of events.jsonl: the immutable envelope plus its hash-chain
fields. data is flattened so the on-disk shape is
{seq, ts, actor, agent, type, prev_sha256, data} (the type/data
pair is produced by EventData’s adjacent tagging).
Fields§
§seq: u641-based, monotonic within the file.
ts: DateTime<Utc>ISO-8601 UTC.
actor: StringOperator handle responsible for the change.
agent: Option<Agent>{ model, skill } when an agent appended this; null otherwise.
prev_sha256: Option<String>SHA-256 of the previous canonicalised line; None on seq: 1. This
is the per-risk hash chain.
data: EventDataThe typed payload (type + data on the wire).
Trait Implementations§
Source§impl Clone for EventEnvelope
impl Clone for EventEnvelope
Source§fn clone(&self) -> EventEnvelope
fn clone(&self) -> EventEnvelope
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventEnvelope
impl Debug for EventEnvelope
Source§impl<'de> Deserialize<'de> for EventEnvelope
impl<'de> Deserialize<'de> for EventEnvelope
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
Source§impl PartialEq for EventEnvelope
impl PartialEq for EventEnvelope
Source§fn eq(&self, other: &EventEnvelope) -> bool
fn eq(&self, other: &EventEnvelope) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EventEnvelope
impl Serialize for EventEnvelope
impl Eq for EventEnvelope
impl StructuralPartialEq for EventEnvelope
Auto Trait Implementations§
impl Freeze for EventEnvelope
impl RefUnwindSafe for EventEnvelope
impl Send for EventEnvelope
impl Sync for EventEnvelope
impl Unpin for EventEnvelope
impl UnsafeUnpin for EventEnvelope
impl UnwindSafe for EventEnvelope
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.