pub struct TaskMetadata {
pub ttl: Option<i64>,
}Expand description
Metadata for augmenting a request with task execution. Include this in the task field of the request parameters.
JSON schema
{
"description": "Metadata for augmenting a request with task execution.\nInclude this in the task field of the request parameters.",
"type": "object",
"properties": {
"ttl": {
"description": "Requested duration in milliseconds to retain task from creation.",
"type": "integer"
}
}
}Fields§
§ttl: Option<i64>Requested duration in milliseconds to retain task from creation.
Trait Implementations§
Source§impl Clone for TaskMetadata
impl Clone for TaskMetadata
Source§fn clone(&self) -> TaskMetadata
fn clone(&self) -> TaskMetadata
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 TaskMetadata
impl Debug for TaskMetadata
Source§impl Default for TaskMetadata
impl Default for TaskMetadata
Source§fn default() -> TaskMetadata
fn default() -> TaskMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskMetadata
impl<'de> Deserialize<'de> for TaskMetadata
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 TaskMetadata
impl RefUnwindSafe for TaskMetadata
impl Send for TaskMetadata
impl Sync for TaskMetadata
impl Unpin for TaskMetadata
impl UnwindSafe for TaskMetadata
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