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

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

/// PreemptionConfig specifies whether preemption is enabled based on scheduler type
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct PreemptionConfig {
    #[serde(rename = "SystemSchedulerEnabled")]
    pub system_scheduler_enabled: bool,

    #[serde(rename = "SysBatchSchedulerEnabled")]
    pub sys_batch_scheduler_enabled: bool,

    #[serde(rename = "BatchSchedulerEnabled")]
    pub batch_scheduler_enabled: bool,

    #[serde(rename = "ServiceSchedulerEnabled")]
    pub service_scheduler_enabled: bool,
}
