pub struct TaskClientProgress {
pub last_message: Option<String>,
pub percentage: Option<f64>,
pub phase: Option<String>,
pub recent_activity: Vec<TaskProgressLine>,
pub sequence: i64,
pub status: TaskClientStatus,
pub type: TaskClientType,
pub updated_at: String,
}Expand description
Generic progress for a client-owned task.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§last_message: Option<String>Most recent nonempty progress message
percentage: Option<f64>Current completion percentage from zero through one hundred
phase: Option<String>Current owner-defined progress phase
recent_activity: Vec<TaskProgressLine>Recent server-timestamped progress messages
sequence: i64Sequence number of the latest accepted owner update
status: TaskClientStatusCurrent client task lifecycle status
type: TaskClientTypeProgress kind
updated_at: StringISO 8601 timestamp of the latest accepted lifecycle change
Trait Implementations§
Source§impl Clone for TaskClientProgress
impl Clone for TaskClientProgress
Source§fn clone(&self) -> TaskClientProgress
fn clone(&self) -> TaskClientProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TaskClientProgress
impl Debug for TaskClientProgress
Source§impl Default for TaskClientProgress
impl Default for TaskClientProgress
Source§fn default() -> TaskClientProgress
fn default() -> TaskClientProgress
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskClientProgress
impl<'de> Deserialize<'de> for TaskClientProgress
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 TaskClientProgress
impl RefUnwindSafe for TaskClientProgress
impl Send for TaskClientProgress
impl Sync for TaskClientProgress
impl Unpin for TaskClientProgress
impl UnsafeUnpin for TaskClientProgress
impl UnwindSafe for TaskClientProgress
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