nomad_client/models/
node_list_stub.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct NodeListStub {
16 #[serde(rename = "Address", skip_serializing_if = "Option::is_none")]
17 pub address: Option<String>,
18 #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
19 pub ID: Option<String>,
20 #[serde(rename = "Datacenter", skip_serializing_if = "Option::is_none")]
21 pub datacenter: Option<String>,
22 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
23 pub name: Option<String>,
24 #[serde(rename = "NodeClass", skip_serializing_if = "Option::is_none")]
25 pub node_class: Option<String>,
26 #[serde(rename = "Version", skip_serializing_if = "Option::is_none")]
27 pub version: Option<String>,
28 #[serde(rename = "Drain", skip_serializing_if = "Option::is_none")]
29 pub drain: Option<bool>,
30 #[serde(rename = "SchedulingEligibility", skip_serializing_if = "Option::is_none")]
31 pub scheduling_eligibility: Option<String>,
32 #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
33 pub status: Option<String>,
34 #[serde(rename = "StatusDescription", skip_serializing_if = "Option::is_none")]
35 pub status_description: Option<String>,
36 #[serde(rename = "Drivers", skip_serializing_if = "Option::is_none")]
37 pub drivers: Option<::std::collections::HashMap<String, crate::models::DriverInfo>>,
38 #[serde(rename = "CreateIndex", skip_serializing_if = "Option::is_none")]
39 pub create_index: Option<i32>,
40 #[serde(rename = "ModifyIndex", skip_serializing_if = "Option::is_none")]
41 pub modify_index: Option<i32>,
42}
43
44impl NodeListStub {
45 pub fn new() -> NodeListStub {
46 NodeListStub {
47 address: None,
48 ID: None,
49 datacenter: None,
50 name: None,
51 node_class: None,
52 version: None,
53 drain: None,
54 scheduling_eligibility: None,
55 status: None,
56 status_description: None,
57 drivers: None,
58 create_index: None,
59 modify_index: None,
60 }
61 }
62}
63
64