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

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

/// NodePoolSchedulerConfiguration is used to serialize the scheduler
/// configuration of a node pool.
///
/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct NodePoolSchedulerConfiguration {
    #[serde(rename = "SchedulerAlgorithm")]
    pub scheduler_algorithm: String,

    #[serde(
        rename = "MemoryOversubscriptionEnabled",
        skip_serializing_if = "Option::is_none"
    )]
    pub memory_oversubscription_enabled: Option<bool>,
}
