pub struct TaskInfo {
pub id: TaskId,
pub task_type: String,
pub status: TaskStatus,
pub progress: Option<f64>,
pub message: Option<String>,
pub created_at: String,
pub started_at: Option<String>,
pub completed_at: Option<String>,
pub error: Option<String>,
}Expand description
Information about a background task.
Fields§
§id: TaskIdUnique task identifier.
task_type: StringTask type (identifies the kind of work).
status: TaskStatusCurrent status.
progress: Option<f64>Progress (0.0 to 1.0, if known).
message: Option<String>Progress message.
created_at: StringTask creation timestamp (ISO 8601).
started_at: Option<String>Task start timestamp (ISO 8601), if started.
completed_at: Option<String>Task completion timestamp (ISO 8601), if completed.
error: Option<String>Error message if failed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TaskInfo
impl<'de> Deserialize<'de> for TaskInfo
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 TaskInfo
impl RefUnwindSafe for TaskInfo
impl Send for TaskInfo
impl Sync for TaskInfo
impl Unpin for TaskInfo
impl UnwindSafe for TaskInfo
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).