nomad_client_rs/models/
volume_request.rs1use serde::{Deserialize, Serialize};
2
3#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
4pub struct VolumeRequest {
5 #[serde(rename = "AccessMode", skip_serializing_if = "Option::is_none")]
6 pub access_mode: Option<String>,
7 #[serde(rename = "AttachmentMode", skip_serializing_if = "Option::is_none")]
8 pub attachment_mode: Option<String>,
9 #[serde(rename = "MountOptions", skip_serializing_if = "Option::is_none")]
10 pub mount_options: Option<crate::models::CsiMountOptions>,
11 #[serde(rename = "Name", skip_serializing_if = "Option::is_none")]
12 pub name: Option<String>,
13 #[serde(rename = "PerAlloc", skip_serializing_if = "Option::is_none")]
14 pub per_alloc: Option<bool>,
15 #[serde(rename = "ReadOnly", skip_serializing_if = "Option::is_none")]
16 pub read_only: Option<bool>,
17 #[serde(rename = "Source", skip_serializing_if = "Option::is_none")]
18 pub source: Option<String>,
19 #[serde(rename = "Type", skip_serializing_if = "Option::is_none")]
20 pub _type: Option<String>,
21}