pub struct Volume {
pub src: PathBuf,
pub dst: PathBuf,
pub read_write: bool,
pub options: Vec<String>,
}Expand description
Volume specification used when running a container.
Fields§
§src: PathBufEither a path on the host (if an absolute path) or the name of a volume.
dst: PathBufAbsolute path in the container where the volume will be mounted.
read_write: boolIf true, mount the volume read-write. Defaults to false.
options: Vec<String>Additional options to set on the volume.
Implementations§
Trait Implementations§
impl Eq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnwindSafe for Volume
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