pub struct TaskStateUpdate {
pub task_id: Option<String>,
pub command_type: Option<String>,
pub status: Option<String>,
pub description: Option<String>,
pub timestamp: Option<String>,
pub progress: Option<f64>,
pub response: Option<ProcessorResponse>,
pub links: Option<Vec<HashMap<String, Value>>>,
pub extra: Value,
}
Expand description
TaskStateUpdate
Represents the state and result of an asynchronous task
Fields§
§task_id: Option<String>
Unique task identifier
command_type: Option<String>
Type of command being executed (e.g., “CREATE_DATABASE”, “DELETE_SUBSCRIPTION”)
status: Option<String>
Current task status (e.g., “processing”, “completed”, “failed”)
description: Option<String>
Human-readable description of the task
timestamp: Option<String>
Timestamp of last task update
progress: Option<f64>
Task completion percentage (0-100)
response: Option<ProcessorResponse>
Result data once task is completed
links: Option<Vec<HashMap<String, Value>>>
HATEOAS links for API navigation
extra: Value
Only for truly unknown/future API fields
Trait Implementations§
Source§impl Clone for TaskStateUpdate
impl Clone for TaskStateUpdate
Source§fn clone(&self) -> TaskStateUpdate
fn clone(&self) -> TaskStateUpdate
Returns a duplicate of the value. Read more
1.0.0 · 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 TaskStateUpdate
impl Debug for TaskStateUpdate
Source§impl<'de> Deserialize<'de> for TaskStateUpdate
impl<'de> Deserialize<'de> for TaskStateUpdate
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 TaskStateUpdate
impl RefUnwindSafe for TaskStateUpdate
impl Send for TaskStateUpdate
impl Sync for TaskStateUpdate
impl Unpin for TaskStateUpdate
impl UnwindSafe for TaskStateUpdate
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