pub struct TaskStatusParams {
pub task_id: String,
pub status: TaskStatus,
pub status_message: Option<String>,
pub created_at: String,
pub last_updated_at: String,
pub ttl: Option<u64>,
pub poll_interval: Option<u64>,
pub meta: Option<Value>,
}Expand description
Notification params when task status changes
Per the spec, TaskStatusNotificationParams = NotificationParams & Task,
so this includes all fields from the Task object.
Fields§
§task_id: StringTask ID
status: TaskStatusNew status
status_message: Option<String>Human-readable status message
created_at: StringISO 8601 timestamp when the task was created
last_updated_at: StringISO 8601 timestamp when the task was last updated
ttl: Option<u64>Time-to-live in milliseconds, null for unlimited
poll_interval: Option<u64>Suggested polling interval in milliseconds
meta: Option<Value>Optional protocol-level metadata
Trait Implementations§
Source§impl Clone for TaskStatusParams
impl Clone for TaskStatusParams
Source§fn clone(&self) -> TaskStatusParams
fn clone(&self) -> TaskStatusParams
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 TaskStatusParams
impl Debug for TaskStatusParams
Source§impl<'de> Deserialize<'de> for TaskStatusParams
impl<'de> Deserialize<'de> for TaskStatusParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskStatusParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TaskStatusParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TaskStatusParams
impl Serialize for TaskStatusParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TaskStatusParams
impl RefUnwindSafe for TaskStatusParams
impl Send for TaskStatusParams
impl Sync for TaskStatusParams
impl Unpin for TaskStatusParams
impl UnsafeUnpin for TaskStatusParams
impl UnwindSafe for TaskStatusParams
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