nomad_client_rs/models/
csi_volume_external_stub.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct CsiVolumeExternalStub {
5    #[serde(rename = "CapacityBytes", skip_serializing_if = "Option::is_none")]
6    pub capacity_bytes: Option<i64>,
7    #[serde(rename = "CloneID", skip_serializing_if = "Option::is_none")]
8    pub clone_id: Option<String>,
9    #[serde(rename = "ExternalID", skip_serializing_if = "Option::is_none")]
10    pub external_id: Option<String>,
11    #[serde(rename = "IsAbnormal", skip_serializing_if = "Option::is_none")]
12    pub is_abnormal: Option<bool>,
13    #[serde(
14        rename = "PublishedExternalNodeIDs",
15        skip_serializing_if = "Option::is_none"
16    )]
17    pub published_external_node_ids: Option<Vec<String>>,
18    #[serde(rename = "SnapshotID", skip_serializing_if = "Option::is_none")]
19    pub snapshot_id: Option<String>,
20    #[serde(rename = "Status", skip_serializing_if = "Option::is_none")]
21    pub status: Option<String>,
22    #[serde(rename = "VolumeContext", skip_serializing_if = "Option::is_none")]
23    pub volume_context: Option<::std::collections::HashMap<String, String>>,
24}