pub struct ConversationEvent {
pub id: String,
pub timestamp: String,
pub parent_id: Option<String>,
pub event_type: String,
pub data: HashMap<String, Value>,
}Expand description
A non-conversational event from the session (hook result, snapshot, etc.)
These are provider-specific entries that aren’t turns but need to be preserved for round-trip fidelity.
Fields§
§id: StringUnique identifier (may be synthetic for entries without UUIDs).
timestamp: StringWhen this event occurred.
parent_id: Option<String>Parent event or turn ID (for ordering).
event_type: StringEvent type (e.g., “attachment”, “system”, “file-history-snapshot”).
data: HashMap<String, Value>Event data — provider-specific key-value pairs.
Trait Implementations§
Source§impl Clone for ConversationEvent
impl Clone for ConversationEvent
Source§fn clone(&self) -> ConversationEvent
fn clone(&self) -> ConversationEvent
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 ConversationEvent
impl Debug for ConversationEvent
Source§impl<'de> Deserialize<'de> for ConversationEvent
impl<'de> Deserialize<'de> for ConversationEvent
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 ConversationEvent
impl RefUnwindSafe for ConversationEvent
impl Send for ConversationEvent
impl Sync for ConversationEvent
impl Unpin for ConversationEvent
impl UnsafeUnpin for ConversationEvent
impl UnwindSafe for ConversationEvent
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