Skip to main content

TypedSystemRepr

Enum TypedSystemRepr 

Source
enum TypedSystemRepr {
Show 17 variants TaskStarted { task_id: String, description: String, uuid: String, session_id: String, tool_use_id: Option<String>, task_type: Option<String>, extras: Extras, }, TaskUpdated { task_id: String, patch: TaskUpdatePatch, uuid: String, session_id: String, extras: Extras, }, TaskProgress { task_id: String, description: String, usage: TaskUsage, uuid: String, session_id: String, tool_use_id: Option<String>, last_tool_name: Option<String>, workflow_progress: Vec<WorkflowProgressEvent>, extras: Extras, }, TaskNotification { task_id: String, status: TaskNotificationStatus, output_file: String, summary: String, uuid: String, session_id: String, tool_use_id: Option<String>, usage: Option<TaskUsage>, extras: Extras, }, ThinkingTokens { estimated_tokens: u64, estimated_tokens_delta: i64, uuid: String, session_id: String, extras: Extras, }, TurnDuration { ms: u64, message_count: Option<u64>, parent_tool_use_id: Option<String>, session_id: String, uuid: String, extras: Extras, }, StopHookSummary { actions: u32, hook_infos: Vec<StopHookInfo>, hook_errors: Vec<String>, has_output: bool, level: String, prevented_continuation: bool, stop_reason: String, tool_use_id: String, parent_tool_use_id: Option<String>, session_id: String, uuid: String, extras: Extras, }, BackgroundTasksChanged { tasks: Vec<Value>, uuid: String, session_id: String, extras: Extras, }, CommandsChanged { commands: Vec<Value>, uuid: String, session_id: String, extras: Extras, }, HookStarted { hook_id: String, hook_name: String, hook_event: String, uuid: String, session_id: String, extras: Extras, }, HookResponse { hook_id: String, hook_name: String, hook_event: String, outcome: String, exit_code: i64, output: String, stdout: String, stderr: String, uuid: String, session_id: String, extras: Extras, }, HookProgress { hook_id: String, hook_name: String, hook_event: String, stdout: String, stderr: String, output: String, uuid: String, session_id: String, extras: Extras, }, Notification { key: Option<String>, text: String, priority: Option<String>, uuid: String, session_id: String, extras: Extras, }, PermissionDenied { tool_name: String, tool_use_id: String, decision_reason_type: Option<String>, decision_reason: Option<String>, message: String, uuid: String, session_id: String, extras: Extras, }, CompactBoundary { compact_metadata: CompactMetadataRepr, uuid: String, session_id: String, extras: Extras, }, VcsStateChanged { kind: String, branch: Option<String>, cwd: String, uuid: String, session_id: String, extras: Extras, }, CodeChangePublished { provider: String, url: String, repo: String, identifier: String, action: Option<String>, branch: Option<String>, uuid: String, session_id: String, extras: Extras, },
}

Variants§

§

TaskStarted

Fields

§task_id: String
§description: String
§uuid: String
§session_id: String
§tool_use_id: Option<String>
§task_type: Option<String>
§extras: Extras
§

TaskUpdated

Fields

§task_id: String
§uuid: String
§session_id: String
§extras: Extras
§

TaskProgress

Fields

§task_id: String
§description: String
§uuid: String
§session_id: String
§tool_use_id: Option<String>
§last_tool_name: Option<String>
§workflow_progress: Vec<WorkflowProgressEvent>

Workflow tool’s per-event snapshot of the workflow’s phase + agent state. Present only when the originating tool is Workflow; otherwise omitted. Each event is the FULL snapshot (not a delta) of every phase

  • agent currently known to the workflow.
§extras: Extras
§

TaskNotification

Fields

§task_id: String
§output_file: String
§summary: String
§uuid: String
§session_id: String
§tool_use_id: Option<String>
§extras: Extras
§

ThinkingTokens

Fields

§estimated_tokens: u64
§estimated_tokens_delta: i64
§uuid: String
§session_id: String
§extras: Extras
§

TurnDuration

Fields

§ms: u64
§message_count: Option<u64>
§parent_tool_use_id: Option<String>
§session_id: String
§uuid: String
§extras: Extras
§

StopHookSummary

Fields

§actions: u32
§hook_infos: Vec<StopHookInfo>
§hook_errors: Vec<String>
§has_output: bool
§level: String
§prevented_continuation: bool
§stop_reason: String
§tool_use_id: String
§parent_tool_use_id: Option<String>
§session_id: String
§uuid: String
§extras: Extras
§

BackgroundTasksChanged

Fields

§tasks: Vec<Value>
§uuid: String
§session_id: String
§extras: Extras
§

CommandsChanged

Fields

§commands: Vec<Value>
§uuid: String
§session_id: String
§extras: Extras
§

HookStarted

Fields

§hook_id: String
§hook_name: String
§hook_event: String
§uuid: String
§session_id: String
§extras: Extras
§

HookResponse

Fields

§hook_id: String
§hook_name: String
§hook_event: String
§outcome: String
§exit_code: i64
§output: String
§stdout: String
§stderr: String
§uuid: String
§session_id: String
§extras: Extras
§

HookProgress

Fields

§hook_id: String
§hook_name: String
§hook_event: String
§stdout: String
§stderr: String
§output: String
§uuid: String
§session_id: String
§extras: Extras
§

Notification

Fields

§text: String
§priority: Option<String>
§uuid: String
§session_id: String
§extras: Extras
§

PermissionDenied

Fields

§tool_name: String
§tool_use_id: String
§decision_reason_type: Option<String>
§decision_reason: Option<String>
§message: String
§uuid: String
§session_id: String
§extras: Extras
§

CompactBoundary

Fields

§compact_metadata: CompactMetadataRepr
§uuid: String
§session_id: String
§extras: Extras
§

VcsStateChanged

Fields

§kind: String
§branch: Option<String>
§uuid: String
§session_id: String
§extras: Extras
§

CodeChangePublished

Fields

§provider: String
§repo: String
§identifier: String
§action: Option<String>
§branch: Option<String>
§uuid: String
§session_id: String
§extras: Extras

Trait Implementations§

Source§

impl Clone for TypedSystemRepr

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TypedSystemRepr

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for TypedSystemRepr

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for TypedSystemRepr

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more