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

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

/// EvaluationStub is used to serialize parts of an evaluation returned in the
/// RelatedEvals field of an 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 EvaluationStub {
    #[serde(rename = "CreateIndex")]
    pub create_index: u64,

    #[serde(rename = "ModifyTime")]
    pub modify_time: i64,

    #[serde(rename = "ID")]
    pub id: String,

    #[serde(rename = "Namespace")]
    pub namespace: String,

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

    #[serde(rename = "NextEval")]
    pub next_eval: String,

    #[serde(rename = "BlockedEval")]
    pub blocked_eval: String,

    #[serde(rename = "Type")]
    pub r#type: String,

    #[serde(rename = "TriggeredBy")]
    pub triggered_by: String,

    #[serde(rename = "JobID")]
    pub job_id: String,

    #[serde(rename = "NodeID")]
    pub node_id: String,

    #[serde(rename = "Status")]
    pub status: String,

    #[serde(rename = "Priority")]
    pub priority: i64,

    #[serde(rename = "StatusDescription")]
    pub status_description: String,

    #[serde(rename = "PreviousEval")]
    pub previous_eval: String,

    #[serde(rename = "CreateTime")]
    pub create_time: i64,

    #[serde(rename = "DeploymentID")]
    pub deployment_id: String,

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