nomad_client/models/
host_memory_stats.rs

1/*
2 * Nomad
3 *
4 * Nomad OpenApi specification
5 *
6 * The version of the OpenAPI document: 0.11.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct HostMemoryStats {
16    #[serde(rename = "Total", skip_serializing_if = "Option::is_none")]
17    pub total: Option<i32>,
18    #[serde(rename = "Available", skip_serializing_if = "Option::is_none")]
19    pub available: Option<i32>,
20    #[serde(rename = "Used", skip_serializing_if = "Option::is_none")]
21    pub used: Option<i32>,
22    #[serde(rename = "Free", skip_serializing_if = "Option::is_none")]
23    pub free: Option<i32>,
24}
25
26impl HostMemoryStats {
27    pub fn new() -> HostMemoryStats {
28        HostMemoryStats {
29            total: None,
30            available: None,
31            used: None,
32            free: None,
33        }
34    }
35}
36
37