Struct podman_api::models::ImageVolume
source · pub struct ImageVolume {
pub destination: Option<String>,
pub read_write: Option<bool>,
pub source: Option<String>,
}
Expand description
ImageVolume is a volume based on a container image. The container image is first mounted on the host and is then bind-mounted into the container. An ImageVolume is always mounted read-only.
Fields§
§destination: Option<String>
Destination is the absolute path of the mount in the container.
read_write: Option<bool>
ReadWrite sets the volume writable.
source: Option<String>
Source is the source of the image volume. The image can be referred to by name and by ID.
Trait Implementations§
source§impl Clone for ImageVolume
impl Clone for ImageVolume
source§fn clone(&self) -> ImageVolume
fn clone(&self) -> ImageVolume
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ImageVolume
impl Debug for ImageVolume
source§impl<'de> Deserialize<'de> for ImageVolume
impl<'de> Deserialize<'de> for ImageVolume
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ImageVolume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ImageVolume, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ImageVolume> for ImageVolume
impl PartialEq<ImageVolume> for ImageVolume
source§fn eq(&self, other: &ImageVolume) -> bool
fn eq(&self, other: &ImageVolume) -> bool
source§impl Serialize for ImageVolume
impl Serialize for ImageVolume
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more