nomad_client_rs/models/
csi_snapshot.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, Default, PartialEq, Serialize, Deserialize)]
4pub struct CsiSnapshot {
5    #[serde(rename = "CreateTime", skip_serializing_if = "Option::is_none")]
6    pub create_time: Option<i64>,
7    #[serde(
8        rename = "ExternalSourceVolumeID",
9        skip_serializing_if = "Option::is_none"
10    )]
11    pub external_source_volume_id: Option<String>,
12    #[serde(rename = "ID", skip_serializing_if = "Option::is_none")]
13    pub id: Option<String>,
14    #[serde(rename = "IsReady", skip_serializing_if = "Option::is_none")]
15    pub is_ready: Option<bool>,
16    #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
17    pub name: Option<String>,
18    #[serde(rename = "Parameters", skip_serializing_if = "Option::is_none")]
19    pub parameters: Option<::std::collections::HashMap<String, String>>,
20    #[serde(rename = "PluginID", skip_serializing_if = "Option::is_none")]
21    pub plugin_id: Option<String>,
22    #[serde(rename = "Secrets", skip_serializing_if = "Option::is_none")]
23    pub secrets: Option<::std::collections::HashMap<String, String>>,
24    #[serde(rename = "SizeBytes", skip_serializing_if = "Option::is_none")]
25    pub size_bytes: Option<i64>,
26    #[serde(rename = "SourceVolumeID", skip_serializing_if = "Option::is_none")]
27    pub source_volume_id: Option<String>,
28}