nomad_client/models/
driver_info.rs1#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
15pub struct DriverInfo {
16 #[serde(rename = "Attributes", skip_serializing_if = "Option::is_none")]
17 pub attributes: Option<::std::collections::HashMap<String, String>>,
18 #[serde(rename = "Detected", skip_serializing_if = "Option::is_none")]
19 pub detected: Option<bool>,
20 #[serde(rename = "Healthy", skip_serializing_if = "Option::is_none")]
21 pub healthy: Option<bool>,
22 #[serde(rename = "HealthDescription", skip_serializing_if = "Option::is_none")]
23 pub health_description: Option<String>,
24 #[serde(rename = "UpdateTime", skip_serializing_if = "Option::is_none")]
25 pub update_time: Option<String>,
26}
27
28impl DriverInfo {
29 pub fn new() -> DriverInfo {
30 DriverInfo {
31 attributes: None,
32 detected: None,
33 healthy: None,
34 health_description: None,
35 update_time: None,
36 }
37 }
38}
39
40