podman_rest_client/v5/models/
image_volume.rs

1use serde::{Deserialize, Serialize};
2#[derive(Default, Debug, Serialize, Deserialize)]
3/// ImageVolume is a volume based on a container image.  The container image is
4/// first mounted on the host and is then bind-mounted into the container.  An
5/// ImageVolume is always mounted read-only.
6pub struct ImageVolume {
7    /// Destination is the absolute path of the mount in the container.
8    #[serde(rename = "Destination")]
9    pub destination: Option<String>,
10    /// ReadWrite sets the volume writable.
11    #[serde(rename = "ReadWrite")]
12    pub read_write: Option<bool>,
13    /// Source is the source of the image volume.  The image can be referred
14    /// to by name and by ID.
15    #[serde(rename = "Source")]
16    pub source: Option<String>,
17    /// SubPath mounts a particular path within the image.
18    /// If empty, the whole image is mounted.
19    #[serde(rename = "subPath")]
20    pub sub_path: Option<String>,
21}