pub struct TaskInfo {
pub task_id: String,
pub status: TaskStatus,
pub created_at: String,
pub ttl: Option<u64>,
pub poll_interval: Option<u64>,
pub progress: Option<f64>,
pub message: Option<String>,
}Expand description
Information about a task
Fields§
§task_id: StringUnique task identifier
status: TaskStatusCurrent task status
created_at: StringISO 8601 timestamp when the task was created
ttl: Option<u64>Time-to-live in seconds (how long to keep the result after completion)
poll_interval: Option<u64>Suggested polling interval in seconds
progress: Option<f64>Progress percentage (0-100) if available
message: Option<String>Human-readable status message
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