nomad_client/models/
task_group_diff.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 TaskGroupDiff {
16    #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
17    pub _type: Option<String>,
18    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
19    pub name: Option<String>,
20    #[serde(rename = "Fields", skip_serializing_if = "Option::is_none")]
21    pub fields: Option<Vec<crate::models::FieldDiff>>,
22    #[serde(rename = "Objects", skip_serializing_if = "Option::is_none")]
23    pub objects: Option<Vec<crate::models::ObjectDiff>>,
24    #[serde(rename = "Tasks", skip_serializing_if = "Option::is_none")]
25    pub tasks: Option<Vec<crate::models::TaskDiff>>,
26    #[serde(rename = "Updates", skip_serializing_if = "Option::is_none")]
27    pub updates: Option<::std::collections::HashMap<String, i32>>,
28}
29
30impl TaskGroupDiff {
31    pub fn new() -> TaskGroupDiff {
32        TaskGroupDiff {
33            _type: None,
34            name: None,
35            fields: None,
36            objects: None,
37            tasks: None,
38            updates: None,
39        }
40    }
41}
42
43