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

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

/// DrainMetadata contains information about the most recent drain operation for a given Node.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct DrainMetadata {
    #[serde(rename = "StartedAt")]
    pub started_at: chrono::DateTime<chrono::Utc>,

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

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

    #[serde(rename = "AccessorID")]
    pub accessor_id: String,

    #[serde(rename = "Meta")]
    pub meta: std::collections::HashMap<String, String>,
}
