nomad_client/models/
job_plan_response.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 JobPlanResponse {
16    #[serde(rename = "JobModifyIndex", skip_serializing_if = "Option::is_none")]
17    pub job_modify_index: Option<i32>,
18    #[serde(rename = "CreatedEvals", skip_serializing_if = "Option::is_none")]
19    pub created_evals: Option<Vec<crate::models::Evaluation>>,
20    #[serde(rename = "Diff", skip_serializing_if = "Option::is_none")]
21    pub diff: Option<Box<crate::models::JobDiff>>,
22    #[serde(rename = "Annotations", skip_serializing_if = "Option::is_none")]
23    pub annotations: Option<Box<crate::models::PlanAnnotations>>,
24    #[serde(rename = "FailedTgAllocs", skip_serializing_if = "Option::is_none")]
25    pub failed_tg_allocs: Option<::std::collections::HashMap<String, crate::models::AllocationMetric>>,
26    #[serde(rename = "NextPeriodicLaunch", skip_serializing_if = "Option::is_none")]
27    pub next_periodic_launch: Option<String>,
28    #[serde(rename = "Warnings", skip_serializing_if = "Option::is_none")]
29    pub warnings: Option<String>,
30}
31
32impl JobPlanResponse {
33    pub fn new() -> JobPlanResponse {
34        JobPlanResponse {
35            job_modify_index: None,
36            created_evals: None,
37            diff: None,
38            annotations: None,
39            failed_tg_allocs: None,
40            next_periodic_launch: None,
41            warnings: None,
42        }
43    }
44}
45
46