podman_rest_client/v5/models/
named_volume.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// NamedVolume holds information about a named volume that will be mounted into
4/// the container.
5pub struct NamedVolume {
6    /// Destination to mount the named volume within the container. Must be
7    /// an absolute path. Path will be created if it does not exist.
8    #[serde(rename = "Dest")]
9    pub dest: Option<String>,
10    /// IsAnonymous sets the named volume as anonymous even if it has a name
11    /// This is used for emptyDir volumes from a kube yaml
12    #[serde(rename = "IsAnonymous")]
13    pub is_anonymous: Option<bool>,
14    /// Name is the name of the named volume to be mounted. May be empty.
15    /// If empty, a new named volume with a pseudorandomly generated name
16    /// will be mounted at the given destination.
17    #[serde(rename = "Name")]
18    pub name: Option<String>,
19    /// Options are options that the named volume will be mounted with.
20    #[serde(rename = "Options")]
21    pub options: Option<Vec<String>>,
22    /// SubPath stores the sub directory of the named volume to be mounted in the container
23    #[serde(rename = "SubPath")]
24    pub sub_path: Option<String>,
25}