1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct JobPlanResponse {
#[serde(rename = "JobModifyIndex", skip_serializing_if = "Option::is_none")]
pub job_modify_index: Option<i32>,
#[serde(rename = "CreatedEvals", skip_serializing_if = "Option::is_none")]
pub created_evals: Option<Vec<crate::models::Evaluation>>,
#[serde(rename = "Diff", skip_serializing_if = "Option::is_none")]
pub diff: Option<Box<crate::models::JobDiff>>,
#[serde(rename = "Annotations", skip_serializing_if = "Option::is_none")]
pub annotations: Option<Box<crate::models::PlanAnnotations>>,
#[serde(rename = "FailedTgAllocs", skip_serializing_if = "Option::is_none")]
pub failed_tg_allocs: Option<::std::collections::HashMap<String, crate::models::AllocationMetric>>,
#[serde(rename = "NextPeriodicLaunch", skip_serializing_if = "Option::is_none")]
pub next_periodic_launch: Option<String>,
#[serde(rename = "Warnings", skip_serializing_if = "Option::is_none")]
pub warnings: Option<String>,
}
impl JobPlanResponse {
pub fn new() -> JobPlanResponse {
JobPlanResponse {
job_modify_index: None,
created_evals: None,
diff: None,
annotations: None,
failed_tg_allocs: None,
next_periodic_launch: None,
warnings: None,
}
}
}