nomad_client/models/
alloc_deployment_status.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 AllocDeploymentStatus {
16    #[serde(rename = "Healthy", skip_serializing_if = "Option::is_none")]
17    pub healthy: Option<bool>,
18    #[serde(rename = "Timestamp", skip_serializing_if = "Option::is_none")]
19    pub timestamp: Option<String>,
20    #[serde(rename = "Canary", skip_serializing_if = "Option::is_none")]
21    pub canary: Option<bool>,
22    #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
23    pub modify_index: Option<i32>,
24}
25
26impl AllocDeploymentStatus {
27    pub fn new() -> AllocDeploymentStatus {
28        AllocDeploymentStatus {
29            healthy: None,
30            timestamp: None,
31            canary: None,
32            modify_index: None,
33        }
34    }
35}
36
37