pub struct EventEnvelope {Show 16 fields
pub event_id: EventId,
pub session_id: SessionId,
pub agent_id: AgentId,
pub branch_id: BranchId,
pub run_id: Option<RunId>,
pub seq: SeqNo,
pub timestamp: u64,
pub actor: EventActor,
pub schema: EventSchema,
pub parent_id: Option<EventId>,
pub trace_id: Option<String>,
pub span_id: Option<String>,
pub digest: Option<String>,
pub kind: EventKind,
pub metadata: HashMap<String, String>,
pub schema_version: u8,
}Expand description
The universal state-change envelope for the Agent OS.
Adopts Lago’s structure: typed IDs, branch-aware sequencing, causal links, metadata bag, and schema versioning.
Fields§
§event_id: EventId§session_id: SessionId§agent_id: AgentId§branch_id: BranchId§run_id: Option<RunId>§seq: SeqNo§timestamp: u64Microseconds since UNIX epoch.
actor: EventActor§schema: EventSchema§parent_id: Option<EventId>§trace_id: Option<String>§span_id: Option<String>§digest: Option<String>§kind: EventKind§metadata: HashMap<String, String>§schema_version: u8Implementations§
Source§impl EventEnvelope
impl EventEnvelope
Sourcepub fn now_micros() -> u64
pub fn now_micros() -> u64
Current time in microseconds since UNIX epoch.
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 · 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
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