nomad_client_rs/models/
deployment_state.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct DeploymentState {
5 #[serde(rename = "AutoRevert", skip_serializing_if = "Option::is_none")]
6 pub auto_revert: Option<bool>,
7 #[serde(rename = "DesiredCanaries", skip_serializing_if = "Option::is_none")]
8 pub desired_canaries: Option<i32>,
9 #[serde(rename = "DesiredTotal", skip_serializing_if = "Option::is_none")]
10 pub desired_total: Option<i32>,
11 #[serde(rename = "HealthyAllocs", skip_serializing_if = "Option::is_none")]
12 pub healthy_allocs: Option<i32>,
13 #[serde(rename = "PlacedAllocs", skip_serializing_if = "Option::is_none")]
14 pub placed_allocs: Option<i32>,
15 #[serde(rename = "PlacedCanaries", skip_serializing_if = "Option::is_none")]
16 pub placed_canaries: Option<Vec<String>>,
17 #[serde(rename = "ProgressDeadline", skip_serializing_if = "Option::is_none")]
18 pub progress_deadline: Option<i64>,
19 #[serde(rename = "Promoted", skip_serializing_if = "Option::is_none")]
20 pub promoted: Option<bool>,
21 #[serde(rename = "RequireProgressBy", skip_serializing_if = "Option::is_none")]
22 pub require_progress_by: Option<String>,
23 #[serde(rename = "UnhealthyAllocs", skip_serializing_if = "Option::is_none")]
24 pub unhealthy_allocs: Option<i32>,
25}