[][src]Struct docker_command::Volume

pub struct Volume {
    pub src: PathBuf,
    pub dst: PathBuf,
    pub read_write: bool,
    pub options: Vec<String>,
}

Volume specification used when running a container.

Fields

src: PathBuf

Either a path on the host (if an absolute path) or the name of a volume.

dst: PathBuf

Absolute path in the container where the volume will be mounted.

read_write: bool

If true, mount the volume read-write. Defaults to false.

options: Vec<String>

Additional options to set on the volume.

Implementations

impl Volume[src]

pub fn arg(&self) -> OsString[src]

Format as an argument.

Trait Implementations

impl Clone for Volume[src]

impl Debug for Volume[src]

impl Default for Volume[src]

impl Eq for Volume[src]

impl PartialEq<Volume> for Volume[src]

impl StructuralEq for Volume[src]

impl StructuralPartialEq for Volume[src]

Auto Trait Implementations

impl RefUnwindSafe for Volume

impl Send for Volume

impl Sync for Volume

impl Unpin for Volume

impl UnwindSafe for Volume

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.