pub struct TypedSessionEvent {
pub id: String,
pub timestamp: String,
pub parent_id: Option<String>,
pub ephemeral: Option<bool>,
pub agent_id: Option<String>,
pub payload: SessionEventData,
}Expand description
A session event with typed data payload.
The common event fields (id, timestamp, parentId, ephemeral, agentId)
are available directly. The event-specific data is in the payload
field as a SessionEventData enum.
Fields§
§id: StringUnique event identifier (UUID v4).
timestamp: StringISO 8601 timestamp when the event was created.
parent_id: Option<String>ID of the preceding event in the chain.
ephemeral: Option<bool>When true, the event is transient and not persisted.
agent_id: Option<String>Sub-agent instance identifier. Absent for events from the root / main agent and session-level events.
payload: SessionEventDataThe typed event payload (discriminated by event type).
Trait Implementations§
Source§impl Clone for TypedSessionEvent
impl Clone for TypedSessionEvent
Source§fn clone(&self) -> TypedSessionEvent
fn clone(&self) -> TypedSessionEvent
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 TypedSessionEvent
impl Debug for TypedSessionEvent
Source§impl<'de> Deserialize<'de> for TypedSessionEvent
impl<'de> Deserialize<'de> for TypedSessionEvent
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 TypedSessionEvent
impl RefUnwindSafe for TypedSessionEvent
impl Send for TypedSessionEvent
impl Sync for TypedSessionEvent
impl Unpin for TypedSessionEvent
impl UnsafeUnpin for TypedSessionEvent
impl UnwindSafe for TypedSessionEvent
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