pub struct ImageVolume {
pub destination: Option<String>,
pub read_write: Option<bool>,
pub source: Option<String>,
pub sub_path: Option<String>,
}
Expand description
ImageVolume : 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.
Implementations§
Source§impl ImageVolume
impl ImageVolume
Sourcepub fn new() -> ImageVolume
pub fn new() -> ImageVolume
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.
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§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 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
Source§impl PartialEq for ImageVolume
impl PartialEq for ImageVolume
Source§impl Serialize for ImageVolume
impl Serialize for ImageVolume
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