nomad_client_rs/models/
csi_info.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct CsiInfo {
5    #[serde(rename = "AllocID", skip_serializing_if = "Option::is_none")]
6    pub alloc_id: Option<String>,
7    #[serde(rename = "ControllerInfo", skip_serializing_if = "Option::is_none")]
8    pub controller_info: Option<crate::models::CsiControllerInfo>,
9    #[serde(rename = "HealthDescription", skip_serializing_if = "Option::is_none")]
10    pub health_description: Option<String>,
11    #[serde(rename = "Healthy", skip_serializing_if = "Option::is_none")]
12    pub healthy: Option<bool>,
13    #[serde(rename = "NodeInfo", skip_serializing_if = "Option::is_none")]
14    pub node_info: Option<crate::models::CsiNodeInfo>,
15    #[serde(rename = "PluginID", skip_serializing_if = "Option::is_none")]
16    pub plugin_id: Option<String>,
17    #[serde(
18        rename = "RequiresControllerPlugin",
19        skip_serializing_if = "Option::is_none"
20    )]
21    pub requires_controller_plugin: Option<bool>,
22    #[serde(rename = "RequiresTopologies", skip_serializing_if = "Option::is_none")]
23    pub requires_topologies: Option<bool>,
24    #[serde(rename = "UpdateTime", skip_serializing_if = "Option::is_none")]
25    pub update_time: Option<String>,
26}