pub struct EventCorrelationV1 {
pub run_id: Option<String>,
pub turn_id: Option<String>,
pub task_id: Option<String>,
pub tool_call_id: Option<String>,
pub attempt_id: Option<String>,
pub causal_parent_event_id: Option<String>,
}Expand description
Optional causal/cross-runtime correlation carried beside a canonical event.
These fields identify relationships only; session/sequence/kind remain owned
by ProtocolEvent and SQLite rather than being duplicated in the envelope.
Fields§
§run_id: Option<String>§turn_id: Option<String>§task_id: Option<String>§tool_call_id: Option<String>§attempt_id: Option<String>§causal_parent_event_id: Option<String>Implementations§
Source§impl EventCorrelationV1
impl EventCorrelationV1
Sourcepub fn from_event(event: &ProtocolEvent) -> Self
pub fn from_event(event: &ProtocolEvent) -> Self
Derive the normalized correlation dimensions already carried by the
canonical event. Routing identity (session_id, seq, kind) remains on
ProtocolEvent; this only exposes cross-event relationships without
duplicating the event payload.
Trait Implementations§
Source§impl Clone for EventCorrelationV1
impl Clone for EventCorrelationV1
Source§impl Debug for EventCorrelationV1
impl Debug for EventCorrelationV1
Source§impl Default for EventCorrelationV1
impl Default for EventCorrelationV1
Source§impl<'de> Deserialize<'de> for EventCorrelationV1
impl<'de> Deserialize<'de> for EventCorrelationV1
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 EventCorrelationV1
Source§impl PartialEq for EventCorrelationV1
impl PartialEq for EventCorrelationV1
Source§impl Serialize for EventCorrelationV1
impl Serialize for EventCorrelationV1
impl StructuralPartialEq for EventCorrelationV1
Auto Trait Implementations§
impl Freeze for EventCorrelationV1
impl RefUnwindSafe for EventCorrelationV1
impl Send for EventCorrelationV1
impl Sync for EventCorrelationV1
impl Unpin for EventCorrelationV1
impl UnsafeUnpin for EventCorrelationV1
impl UnwindSafe for EventCorrelationV1
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