podman_rest_client/v5/models/
inspect_mount.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// InspectMount provides a record of a single mount in a container. It contains
4/// fields for both named and normal volumes. Only user-specified volumes will be
5/// included, and tmpfs volumes are not included even if the user specified them.
6pub struct InspectMount {
7    /// The destination directory for the volume. Specified as a path within
8    /// the container, as it would be passed into the OCI runtime.
9    #[serde(rename = "Destination")]
10    pub destination: Option<String>,
11    /// The driver used for the named volume. Empty for bind mounts.
12    #[serde(rename = "Driver")]
13    pub driver: Option<String>,
14    /// Contains SELinux :z/:Z mount options. Unclear what, if anything, else
15    /// goes in here.
16    #[serde(rename = "Mode")]
17    pub mode: Option<String>,
18    /// The name of the volume. Empty for bind mounts.
19    #[serde(rename = "Name")]
20    pub name: Option<String>,
21    /// All remaining mount options. Additional data, not present in the
22    /// original output.
23    #[serde(rename = "Options")]
24    pub options: Option<Vec<String>>,
25    /// Mount propagation for the mount. Can be empty if not specified, but
26    /// is always printed - no omitempty.
27    #[serde(rename = "Propagation")]
28    pub propagation: Option<String>,
29    /// Whether the volume is read-write
30    #[serde(rename = "RW")]
31    pub rw: Option<bool>,
32    /// The source directory for the volume.
33    #[serde(rename = "Source")]
34    pub source: Option<String>,
35    /// Whether the mount is a volume or bind mount. Allowed values are
36    /// "volume" and "bind".
37    #[serde(rename = "Type")]
38    pub r#type: Option<String>,
39}