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

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

/// This struct was generated based on the Go types of the official Nomad API.
#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize, Builder)]
pub struct NodeCpuResources {
    #[serde(rename = "CpuShares")]
    pub cpu_shares: i64,

    #[serde(rename = "TotalCpuCores")]
    pub total_cpu_cores: u16,

    #[serde(
        rename = "ReservableCpuCores",
        deserialize_with = "crate::deserialize_null_as_default"
    )]
    pub reservable_cpu_cores: Vec<u16>,
}
