nomad_client/models/
plan_annotations.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct PlanAnnotations {
16 #[serde(rename = "DesiredTgUpdates", skip_serializing_if = "Option::is_none")]
17 pub desired_tg_updates: Option<::std::collections::HashMap<String, crate::models::DesiredUpdates>>,
18 #[serde(rename = "PreemptedAllocs", skip_serializing_if = "Option::is_none")]
19 pub preempted_allocs: Option<Vec<crate::models::AllocationListStub>>,
20}
21
22impl PlanAnnotations {
23 pub fn new() -> PlanAnnotations {
24 PlanAnnotations {
25 desired_tg_updates: None,
26 preempted_allocs: None,
27 }
28 }
29}
30
31