pub struct TaskStateUpdate {
pub task_id: Option<String>,
pub command_type: Option<String>,
pub status: Option<TaskStatus>,
pub description: Option<String>,
pub timestamp: Option<String>,
pub progress: Option<f64>,
pub response: Option<ProcessorResponse>,
pub links: Option<Vec<Link>>,
}Expand description
State of an asynchronous Redis Cloud task.
Returned by most mutating operations in the API. The task_id can be
polled via TasksHandler::get_task_by_id until status reaches a
terminal value (see TaskStatus).
Fields§
§task_id: Option<String>UUID of the task. Use with TasksHandler::get_task_by_id to poll.
command_type: Option<String>Type of command being executed (e.g. "CREATE_DATABASE").
status: Option<TaskStatus>Current task status. See TaskStatus.
description: Option<String>Human-readable description of the task.
timestamp: Option<String>Timestamp of the last task update (ISO-8601 string).
progress: Option<f64>Task completion percentage (0-100), when the processor reports it.
response: Option<ProcessorResponse>Result of the task once it has completed. See ProcessorResponse.
links: Option<Vec<Link>>HATEOAS links for related resources (e.g. the resource the task produced).
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 (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 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 UnsafeUnpin 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