nomad_client_rs/models/
allocation_list_stub.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct AllocationListStub {
5    #[serde(rename = "AllocatedResources", skip_serializing_if = "Option::is_none")]
6    pub allocated_resources: Option<crate::models::AllocatedResources>,
7    #[serde(rename = "ClientDescription", skip_serializing_if = "Option::is_none")]
8    pub client_description: Option<String>,
9    #[serde(rename = "ClientStatus", skip_serializing_if = "Option::is_none")]
10    pub client_status: Option<String>,
11    #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
12    pub create_index: Option<i32>,
13    #[serde(rename = "CreateTime", skip_serializing_if = "Option::is_none")]
14    pub create_time: Option<i64>,
15    #[serde(rename = "DeploymentStatus", skip_serializing_if = "Option::is_none")]
16    pub deployment_status: Option<crate::models::AllocDeploymentStatus>,
17    #[serde(rename = "DesiredDescription", skip_serializing_if = "Option::is_none")]
18    pub desired_description: Option<String>,
19    #[serde(rename = "DesiredStatus", skip_serializing_if = "Option::is_none")]
20    pub desired_status: Option<String>,
21    #[serde(rename = "EvalID", skip_serializing_if = "Option::is_none")]
22    pub eval_id: Option<String>,
23    #[serde(rename = "FollowupEvalID", skip_serializing_if = "Option::is_none")]
24    pub followup_eval_id: Option<String>,
25    #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
26    pub id: Option<String>,
27    #[serde(rename = "JobID", skip_serializing_if = "Option::is_none")]
28    pub job_id: Option<String>,
29    #[serde(rename = "JobType", skip_serializing_if = "Option::is_none")]
30    pub job_type: Option<String>,
31    #[serde(rename = "JobVersion", skip_serializing_if = "Option::is_none")]
32    pub job_version: Option<i32>,
33    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
34    pub modify_index: Option<i32>,
35    #[serde(rename = "ModifyTime", skip_serializing_if = "Option::is_none")]
36    pub modify_time: Option<i64>,
37    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
38    pub name: Option<String>,
39    #[serde(rename = "Namespace", skip_serializing_if = "Option::is_none")]
40    pub namespace: Option<String>,
41    #[serde(rename = "NodeID", skip_serializing_if = "Option::is_none")]
42    pub node_id: Option<String>,
43    #[serde(rename = "NodeName", skip_serializing_if = "Option::is_none")]
44    pub node_name: Option<String>,
45    #[serde(
46        rename = "PreemptedAllocations",
47        skip_serializing_if = "Option::is_none"
48    )]
49    pub preempted_allocations: Option<Vec<String>>,
50    #[serde(
51        rename = "PreemptedByAllocation",
52        skip_serializing_if = "Option::is_none"
53    )]
54    pub preempted_by_allocation: Option<String>,
55    #[serde(rename = "RescheduleTracker", skip_serializing_if = "Option::is_none")]
56    pub reschedule_tracker: Option<crate::models::RescheduleTracker>,
57    #[serde(rename = "TaskGroup", skip_serializing_if = "Option::is_none")]
58    pub task_group: Option<String>,
59    #[serde(rename = "TaskStates", skip_serializing_if = "Option::is_none")]
60    pub task_states: Option<::std::collections::HashMap<String, crate::models::TaskState>>,
61}