nomad_client/models/
agent_self.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 AgentSelf {
16    #[serde(rename = "Config", skip_serializing_if = "Option::is_none")]
17    pub config: Option<::std::collections::HashMap<String, serde_json::Value>>,
18    #[serde(rename = "Member", skip_serializing_if = "Option::is_none")]
19    pub member: Option<Box<crate::models::AgentMember>>,
20    #[serde(rename = "Stats", skip_serializing_if = "Option::is_none")]
21    pub stats: Option<::std::collections::HashMap<String, ::std::collections::HashMap<String, String>>>,
22}
23
24impl AgentSelf {
25    pub fn new() -> AgentSelf {
26        AgentSelf {
27            config: None,
28            member: None,
29            stats: None,
30        }
31    }
32}
33
34