nomad_client_rs/models/
node_cpu_resources.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct NodeCpuResources {
5 #[serde(rename = "CpuShares", skip_serializing_if = "Option::is_none")]
6 pub cpu_shares: Option<i64>,
7 #[serde(rename = "ReservableCpuCores", skip_serializing_if = "Option::is_none")]
8 pub reservable_cpu_cores: Option<Vec<i32>>,
9 #[serde(rename = "TotalCpuCores", skip_serializing_if = "Option::is_none")]
10 pub total_cpu_cores: Option<i32>,
11}