nomad_client/models/
task_group_summary.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TaskGroupSummary {
16    #[serde(rename = "Queued", skip_serializing_if = "Option::is_none")]
17    pub queued: Option<i32>,
18    #[serde(rename = "Complete", skip_serializing_if = "Option::is_none")]
19    pub complete: Option<i32>,
20    #[serde(rename = "Failed", skip_serializing_if = "Option::is_none")]
21    pub failed: Option<i32>,
22    #[serde(rename = "Running", skip_serializing_if = "Option::is_none")]
23    pub running: Option<i32>,
24    #[serde(rename = "Starting", skip_serializing_if = "Option::is_none")]
25    pub starting: Option<i32>,
26    #[serde(rename = "Lost", skip_serializing_if = "Option::is_none")]
27    pub lost: Option<i32>,
28}
29
30impl TaskGroupSummary {
31    pub fn new() -> TaskGroupSummary {
32        TaskGroupSummary {
33            queued: None,
34            complete: None,
35            failed: None,
36            running: None,
37            starting: None,
38            lost: None,
39        }
40    }
41}
42
43