pub struct VersionedThreadEvent { /* private fields */ }Expand description
Wraps a ThreadEvent with schema metadata so downstream consumers can
negotiate compatibility before processing an event stream.
Implementations§
Source§impl VersionedThreadEvent
impl VersionedThreadEvent
Sourcepub fn new(event: ThreadEvent) -> Self
pub fn new(event: ThreadEvent) -> Self
Creates a new VersionedThreadEvent using the current
EVENT_SCHEMA_VERSION.
Sourcepub fn event(&self) -> &ThreadEvent
pub fn event(&self) -> &ThreadEvent
Returns the nested ThreadEvent by reference.
Sourcepub fn into_event(self) -> ThreadEvent
pub fn into_event(self) -> ThreadEvent
Returns the nested ThreadEvent, consuming the wrapper.
Trait Implementations§
Source§impl Clone for VersionedThreadEvent
impl Clone for VersionedThreadEvent
Source§impl Debug for VersionedThreadEvent
impl Debug for VersionedThreadEvent
Source§impl<'de> Deserialize<'de> for VersionedThreadEvent
impl<'de> Deserialize<'de> for VersionedThreadEvent
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 VersionedThreadEvent
Source§impl From<ThreadEvent> for VersionedThreadEvent
impl From<ThreadEvent> for VersionedThreadEvent
Source§fn from(event: ThreadEvent) -> Self
fn from(event: ThreadEvent) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for VersionedThreadEvent
impl JsonSchema for VersionedThreadEvent
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for VersionedThreadEvent
impl PartialEq for VersionedThreadEvent
Source§impl Serialize for VersionedThreadEvent
impl Serialize for VersionedThreadEvent
impl StructuralPartialEq for VersionedThreadEvent
Auto Trait Implementations§
impl Forget for VersionedThreadEvent
impl Freeze for VersionedThreadEventwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const MatrixSnapshot is !null: Freeze,
PhantomData<MatrixSnapshot>: Freeze,
*const TrackerSnapshot is !null: Freeze,
PhantomData<TrackerSnapshot>: Freeze,
*const GoalUpdatedEvent is !null: Freeze,
PhantomData<GoalUpdatedEvent>: Freeze,
*const ThreadCompletedEvent is !null: Freeze,
PhantomData<ThreadCompletedEvent>: Freeze,
*const ThreadCompactBoundaryEvent is !null: Freeze,
PhantomData<ThreadCompactBoundaryEvent>: Freeze,
*const TokenBreakdown is !null: Freeze,
PhantomData<TokenBreakdown>: Freeze,
*const ExecutionContext is !null: Freeze,
PhantomData<ExecutionContext>: Freeze,
*const String is !null: Freeze,
PhantomData<String>: Freeze,
*const TurnBlockedEvent is !null: Freeze,
PhantomData<TurnBlockedEvent>: Freeze,
*const ItemContext is !null: Freeze,
PhantomData<ItemContext>: Freeze,
*const ReasoningItem is !null: Freeze,
PhantomData<ReasoningItem>: Freeze,
*const DecisionItem is !null: Freeze,
PhantomData<DecisionItem>: Freeze,
*const CommandExecutionItem is !null: Freeze,
PhantomData<CommandExecutionItem>: Freeze,
*const ToolInvocationItem is !null: Freeze,
PhantomData<ToolInvocationItem>: Freeze,
*const ToolOutputItem is !null: Freeze,
PhantomData<ToolOutputItem>: Freeze,
*const FileChangeItem is !null: Freeze,
PhantomData<FileChangeItem>: Freeze,
*const McpToolCallItem is !null: Freeze,
PhantomData<McpToolCallItem>: Freeze,
*const WebSearchItem is !null: Freeze,
PhantomData<WebSearchItem>: Freeze,
*const HarnessEventItem is !null: Freeze,
PhantomData<HarnessEventItem>: Freeze,
*const AppSandboxDeniedEvent is !null: Freeze,
PhantomData<AppSandboxDeniedEvent>: Freeze,
*const PlanDeltaEvent is !null: Freeze,
PhantomData<PlanDeltaEvent>: Freeze,
impl Move for VersionedThreadEvent
impl RefUnwindSafe for VersionedThreadEvent
impl Send for VersionedThreadEventwhere
RawVecInner: Send,
BoxRaw<MatrixSnapshot>: Send,
BoxRaw<TrackerSnapshot>: Send,
BoxRaw<GoalUpdatedEvent>: Send,
BoxRaw<ThreadCompletedEvent>: Send,
BoxRaw<ThreadCompactBoundaryEvent>: Send,
BoxRaw<TokenBreakdown>: Send,
BoxRaw<ExecutionContext>: Send,
BoxRaw<String>: Send,
BoxRaw<TurnBlockedEvent>: Send,
BoxRaw<ItemContext>: Send,
BoxRaw<ReasoningItem>: Send,
BoxRaw<DecisionItem>: Send,
BoxRaw<CommandExecutionItem>: Send,
BoxRaw<ToolInvocationItem>: Send,
BoxRaw<ToolOutputItem>: Send,
BoxRaw<FileChangeItem>: Send,
BoxRaw<McpToolCallItem>: Send,
BoxRaw<WebSearchItem>: Send,
BoxRaw<HarnessEventItem>: Send,
BoxRaw<AppSandboxDeniedEvent>: Send,
BoxRaw<PlanDeltaEvent>: Send,
impl Sync for VersionedThreadEventwhere
RawVecInner: Sync,
BoxRaw<MatrixSnapshot>: Sync,
BoxRaw<TrackerSnapshot>: Sync,
BoxRaw<GoalUpdatedEvent>: Sync,
BoxRaw<ThreadCompletedEvent>: Sync,
BoxRaw<ThreadCompactBoundaryEvent>: Sync,
BoxRaw<TokenBreakdown>: Sync,
BoxRaw<ExecutionContext>: Sync,
BoxRaw<String>: Sync,
BoxRaw<TurnBlockedEvent>: Sync,
BoxRaw<ItemContext>: Sync,
BoxRaw<ReasoningItem>: Sync,
BoxRaw<DecisionItem>: Sync,
BoxRaw<CommandExecutionItem>: Sync,
BoxRaw<ToolInvocationItem>: Sync,
BoxRaw<ToolOutputItem>: Sync,
BoxRaw<FileChangeItem>: Sync,
BoxRaw<McpToolCallItem>: Sync,
BoxRaw<WebSearchItem>: Sync,
BoxRaw<HarnessEventItem>: Sync,
BoxRaw<AppSandboxDeniedEvent>: Sync,
BoxRaw<PlanDeltaEvent>: Sync,
impl Unpin for VersionedThreadEventwhere
*const u8 is !null: Unpin,
Box<MatrixSnapshot>: Unpin,
Box<TrackerSnapshot>: Unpin,
Box<GoalUpdatedEvent>: Unpin,
Box<ThreadCompletedEvent>: Unpin,
Box<ThreadCompactBoundaryEvent>: Unpin,
Box<TokenBreakdown>: Unpin,
Box<ExecutionContext>: Unpin,
Box<String>: Unpin,
Box<TurnBlockedEvent>: Unpin,
Box<ItemContext>: Unpin,
Box<ReasoningItem>: Unpin,
Box<DecisionItem>: Unpin,
Box<CommandExecutionItem>: Unpin,
Box<ToolInvocationItem>: Unpin,
Box<ToolOutputItem>: Unpin,
Box<FileChangeItem>: Unpin,
Box<McpToolCallItem>: Unpin,
Box<WebSearchItem>: Unpin,
Box<HarnessEventItem>: Unpin,
Box<AppSandboxDeniedEvent>: Unpin,
Box<PlanDeltaEvent>: Unpin,
impl UnsafeUnpin for VersionedThreadEventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const MatrixSnapshot is !null: UnsafeUnpin,
PhantomData<MatrixSnapshot>: UnsafeUnpin,
*const TrackerSnapshot is !null: UnsafeUnpin,
PhantomData<TrackerSnapshot>: UnsafeUnpin,
*const GoalUpdatedEvent is !null: UnsafeUnpin,
PhantomData<GoalUpdatedEvent>: UnsafeUnpin,
*const ThreadCompletedEvent is !null: UnsafeUnpin,
PhantomData<ThreadCompletedEvent>: UnsafeUnpin,
*const ThreadCompactBoundaryEvent is !null: UnsafeUnpin,
PhantomData<ThreadCompactBoundaryEvent>: UnsafeUnpin,
*const TokenBreakdown is !null: UnsafeUnpin,
PhantomData<TokenBreakdown>: UnsafeUnpin,
*const ExecutionContext is !null: UnsafeUnpin,
PhantomData<ExecutionContext>: UnsafeUnpin,
*const String is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const TurnBlockedEvent is !null: UnsafeUnpin,
PhantomData<TurnBlockedEvent>: UnsafeUnpin,
*const ItemContext is !null: UnsafeUnpin,
PhantomData<ItemContext>: UnsafeUnpin,
*const ReasoningItem is !null: UnsafeUnpin,
PhantomData<ReasoningItem>: UnsafeUnpin,
*const DecisionItem is !null: UnsafeUnpin,
PhantomData<DecisionItem>: UnsafeUnpin,
*const CommandExecutionItem is !null: UnsafeUnpin,
PhantomData<CommandExecutionItem>: UnsafeUnpin,
*const ToolInvocationItem is !null: UnsafeUnpin,
PhantomData<ToolInvocationItem>: UnsafeUnpin,
*const ToolOutputItem is !null: UnsafeUnpin,
PhantomData<ToolOutputItem>: UnsafeUnpin,
*const FileChangeItem is !null: UnsafeUnpin,
PhantomData<FileChangeItem>: UnsafeUnpin,
*const McpToolCallItem is !null: UnsafeUnpin,
PhantomData<McpToolCallItem>: UnsafeUnpin,
*const WebSearchItem is !null: UnsafeUnpin,
PhantomData<WebSearchItem>: UnsafeUnpin,
*const HarnessEventItem is !null: UnsafeUnpin,
PhantomData<HarnessEventItem>: UnsafeUnpin,
*const AppSandboxDeniedEvent is !null: UnsafeUnpin,
PhantomData<AppSandboxDeniedEvent>: UnsafeUnpin,
*const PlanDeltaEvent is !null: UnsafeUnpin,
PhantomData<PlanDeltaEvent>: UnsafeUnpin,
impl UnwindSafe for VersionedThreadEventwhere
RawVecInner: UnwindSafe,
BoxRaw<MatrixSnapshot>: UnwindSafe,
BoxRaw<TrackerSnapshot>: UnwindSafe,
BoxRaw<GoalUpdatedEvent>: UnwindSafe,
BoxRaw<ThreadCompletedEvent>: UnwindSafe,
BoxRaw<ThreadCompactBoundaryEvent>: UnwindSafe,
BoxRaw<TokenBreakdown>: UnwindSafe,
BoxRaw<ExecutionContext>: UnwindSafe,
BoxRaw<String>: UnwindSafe,
BoxRaw<TurnBlockedEvent>: UnwindSafe,
BoxRaw<ItemContext>: UnwindSafe,
BoxRaw<ReasoningItem>: UnwindSafe,
BoxRaw<DecisionItem>: UnwindSafe,
BoxRaw<CommandExecutionItem>: UnwindSafe,
BoxRaw<ToolInvocationItem>: UnwindSafe,
BoxRaw<ToolOutputItem>: UnwindSafe,
BoxRaw<FileChangeItem>: UnwindSafe,
BoxRaw<McpToolCallItem>: UnwindSafe,
BoxRaw<WebSearchItem>: UnwindSafe,
BoxRaw<HarnessEventItem>: UnwindSafe,
BoxRaw<AppSandboxDeniedEvent>: UnwindSafe,
BoxRaw<PlanDeltaEvent>: UnwindSafe,
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.