nomad_client/models/
stat_object.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct StatObject {
16 #[serde(rename = "Nested", skip_serializing_if = "Option::is_none")]
17 pub nested: Option<::std::collections::HashMap<String, crate::models::StatObject>>,
18 #[serde(rename = "Attributes", skip_serializing_if = "Option::is_none")]
19 pub attributes: Option<::std::collections::HashMap<String, crate::models::StatValue>>,
20}
21
22impl StatObject {
23 pub fn new() -> StatObject {
24 StatObject {
25 nested: None,
26 attributes: None,
27 }
28 }
29}
30
31