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

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

/// DeploymentUpdateResponse is used to respond to a deployment change. The
/// response will include the modify index of the deployment as well as details
/// of any triggered evaluation.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct DeploymentUpdateResponse {
    #[serde(rename = "EvalID")]
    pub eval_id: String,

    #[serde(rename = "EvalCreateIndex")]
    pub eval_create_index: u64,

    #[serde(rename = "DeploymentModifyIndex")]
    pub deployment_modify_index: u64,

    #[serde(rename = "RevertedJobVersion", skip_serializing_if = "Option::is_none")]
    pub reverted_job_version: Option<u64>,
}
