/*
 * This is an auto-generated file.
 * Any manual changes may be overwritten without notice!
 */

use derive_builder::Builder;
use serde::{Deserialize, Serialize};

/// AllocDeploymentStatus captures the status of the allocation as part of the
/// deployment. This can include things like if the allocation has been marked as
/// healthy.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct AllocDeploymentStatus {
    #[serde(rename = "Healthy", skip_serializing_if = "Option::is_none")]
    pub healthy: Option<bool>,

    #[serde(rename = "Timestamp")]
    pub timestamp: chrono::DateTime<chrono::Utc>,

    #[serde(rename = "Canary")]
    pub canary: bool,

    #[serde(rename = "ModifyIndex")]
    pub modify_index: u64,
}
