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

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

/// DrainStrategy describes a Node's drain behavior.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct DrainStrategy {
    /// ForceDeadline is the deadline time for the drain after which drains will
    /// be forced
    #[serde(rename = "ForceDeadline")]
    pub force_deadline: chrono::DateTime<chrono::Utc>,

    /// StartedAt is the time the drain process started
    #[serde(rename = "StartedAt")]
    pub started_at: chrono::DateTime<chrono::Utc>,
}
