nomad_client/models/
job_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 JobDiff {
16    #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
17    pub _type: Option<String>,
18    #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
19    pub ID: 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 = "TaskGroups", skip_serializing_if = "Option::is_none")]
25    pub task_groups: Option<Vec<crate::models::TaskGroupDiff>>,
26}
27
28impl JobDiff {
29    pub fn new() -> JobDiff {
30        JobDiff {
31            _type: None,
32            ID: None,
33            fields: None,
34            objects: None,
35            task_groups: None,
36        }
37    }
38}
39
40