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

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

/// RescheduleEvent is used to keep track of previous attempts at rescheduling an allocation
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct RescheduleEvent {
    /// RescheduleTime is the timestamp of a reschedule attempt
    #[serde(rename = "RescheduleTime")]
    pub reschedule_time: i64,

    /// PrevAllocID is the ID of the previous allocation being restarted
    #[serde(rename = "PrevAllocID")]
    pub prev_alloc_id: String,

    /// PrevNodeID is the node ID of the previous allocation
    #[serde(rename = "PrevNodeID")]
    pub prev_node_id: String,
}
