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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for ImageVolume
impl PartialEq for ImageVolume
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
impl StructuralPartialEq for ImageVolume
Auto Trait Implementations§
impl Freeze for ImageVolume
impl RefUnwindSafe for ImageVolume
impl Send for ImageVolume
impl Sync for ImageVolume
impl Unpin for ImageVolume
impl UnwindSafe for ImageVolume
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more