pub struct ImageVolume {
pub destination: Option<String>,
pub read_write: Option<bool>,
pub source: Option<String>,
pub sub_path: Option<String>,
}
Available on crate feature
v5
only.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.
sub_path: Option<String>
SubPath mounts a particular path within the image. If empty, the whole image is mounted.
Trait Implementations§
Source§impl Debug for ImageVolume
impl Debug for ImageVolume
Source§impl Default for ImageVolume
impl Default for ImageVolume
Source§fn default() -> ImageVolume
fn default() -> ImageVolume
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageVolume
impl<'de> Deserialize<'de> for ImageVolume
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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