podman_rest_client/v5/models/
mount_point.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// MountPoint represents a mount point configuration inside the container.
4/// This is used for reporting the mountpoints in use by a container.
5pub struct MountPoint {
6    /// Destination is the path relative to the container root (`/`) where the
7    /// Source is mounted inside the container.
8    #[serde(rename = "Destination")]
9    pub destination: Option<String>,
10    /// Driver is the volume driver used to create the volume (if it is a volume).
11    #[serde(rename = "Driver")]
12    pub driver: Option<String>,
13    /// Mode is a comma separated list of options supplied by the user when
14    /// creating the bind/volume mount.
15    ///
16    /// The default is platform-specific (`"z"` on Linux, empty on Windows).
17    #[serde(rename = "Mode")]
18    pub mode: Option<String>,
19    /// Name is the name reference to the underlying data defined by `Source`
20    /// e.g., the volume name.
21    #[serde(rename = "Name")]
22    pub name: Option<String>,
23    #[serde(rename = "Propagation")]
24    pub propagation: Option<String>,
25    /// RW indicates whether the mount is mounted writable (read-write).
26    #[serde(rename = "RW")]
27    pub rw: Option<bool>,
28    /// Source is the source location of the mount.
29    ///
30    /// For volumes, this contains the storage location of the volume (within
31    /// `/var/lib/docker/volumes/`). For bind-mounts, and `npipe`, this contains
32    /// the source (host) part of the bind-mount. For `tmpfs` mount points, this
33    /// field is empty.
34    #[serde(rename = "Source")]
35    pub source: Option<String>,
36    #[serde(rename = "Type")]
37    pub r#type: Option<String>,
38}