nomad_client/models/
device_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 DeviceStats {
16    #[serde(rename = "Summary", skip_serializing_if = "Option::is_none")]
17    pub summary: Option<Box<crate::models::StatValue>>,
18    #[serde(rename = "Stats", skip_serializing_if = "Option::is_none")]
19    pub stats: Option<Box<crate::models::StatObject>>,
20    #[serde(rename = "Timestamp", skip_serializing_if = "Option::is_none")]
21    pub timestamp: Option<String>,
22}
23
24impl DeviceStats {
25    pub fn new() -> DeviceStats {
26        DeviceStats {
27            summary: None,
28            stats: None,
29            timestamp: None,
30        }
31    }
32}
33
34