pub struct TaskClientInfo {Show 22 fields
pub active_started_at: Option<String>,
pub active_time_ms: i64,
pub can_cancel: bool,
pub cancellation_reason: Option<String>,
pub client_task_id: String,
pub completed_at: Option<String>,
pub description: String,
pub display_name: Option<String>,
pub error: Option<String>,
pub error_code: Option<String>,
pub execution_mode: TaskClientExecutionMode,
pub id: String,
pub idle_since: Option<String>,
pub orphaned_at: Option<String>,
pub owner: TaskClientOwner,
pub reclaimed_at: Option<String>,
pub result: Option<Value>,
pub sequence: i64,
pub started_at: String,
pub status: TaskClientStatus,
pub type: TaskClientType,
pub updated_at: String,
}Expand description
Tracked client-owned task metadata.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§active_started_at: Option<String>ISO 8601 timestamp when the current active segment started
active_time_ms: i64Accumulated active execution time in milliseconds
can_cancel: boolWhether the currently bound owner can receive a cancellation request
cancellation_reason: Option<String>Human-readable reason for terminal cancellation
client_task_id: StringOwner-scoped registration and reclaim key
completed_at: Option<String>ISO 8601 timestamp when the task reached a terminal status
description: StringTask description
display_name: Option<String>Optional task display name
error: Option<String>Human-readable terminal failure message
error_code: Option<String>Optional owner-supplied terminal failure code
execution_mode: TaskClientExecutionModeExecution mode, which is always background for client-owned tasks
id: StringCanonical runtime-generated task identifier
idle_since: Option<String>ISO 8601 timestamp when the connected owner entered idle status
orphaned_at: Option<String>ISO 8601 timestamp of the most recent orphan transition
owner: TaskClientOwnerPublic attribution and presence for the task owner
reclaimed_at: Option<String>ISO 8601 timestamp of the most recent successful reclaim
result: Option<Value>Opaque successful terminal result supplied by the task owner
sequence: i64Sequence number of the latest accepted owner update
started_at: StringISO 8601 timestamp when the task started
status: TaskClientStatusClient task lifecycle status
type: TaskClientTypeTask kind
updated_at: StringISO 8601 timestamp of the latest accepted lifecycle change
Trait Implementations§
Source§impl Clone for TaskClientInfo
impl Clone for TaskClientInfo
Source§fn clone(&self) -> TaskClientInfo
fn clone(&self) -> TaskClientInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more