pub struct Task {Show 14 fields
pub id: Option<String>,
pub version: Option<ObjectVersion>,
pub created_at: Option<String>,
pub updated_at: Option<String>,
pub name: Option<String>,
pub labels: Option<HashMap<String, String>>,
pub spec: Option<TaskSpec>,
pub service_id: Option<String>,
pub slot: Option<i64>,
pub node_id: Option<String>,
pub assigned_generic_resources: Option<GenericResourcesInner>,
pub status: Option<TaskStatus>,
pub desired_state: Option<TaskState>,
pub job_iteration: Option<ObjectVersion>,
}
Fields§
§id: Option<String>
The ID of the task.
version: Option<ObjectVersion>
§created_at: Option<String>
§updated_at: Option<String>
§name: Option<String>
Name of the task.
labels: Option<HashMap<String, String>>
User-defined key/value metadata.
spec: Option<TaskSpec>
§service_id: Option<String>
The ID of the service this task is part of.
slot: Option<i64>
§node_id: Option<String>
The ID of the node that this task is on.
assigned_generic_resources: Option<GenericResourcesInner>
§status: Option<TaskStatus>
§desired_state: Option<TaskState>
§job_iteration: Option<ObjectVersion>
If the Service this Task belongs to is a job-mode service, contains the JobIteration of the Service this Task was created for. Absent if the Task was created for a Replicated or Global Service.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Task
impl<'de> Deserialize<'de> for Task
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Task, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Task, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Task
impl Serialize for Task
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
impl StructuralPartialEq for Task
Auto Trait Implementations§
impl Freeze for Task
impl RefUnwindSafe for Task
impl Send for Task
impl Sync for Task
impl Unpin for Task
impl UnwindSafe for Task
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)