Struct bollard_stubs::models::Task
source · pub struct Task {Show 14 fields
pub id: Option<String>,
pub version: Option<ObjectVersion>,
pub created_at: Option<BollardDate>,
pub updated_at: Option<BollardDate>,
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<GenericResources>,
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<BollardDate>
§updated_at: Option<BollardDate>
§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<GenericResources>
§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<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