[][src]Struct container_spec::MountBuilder

pub struct MountBuilder { /* fields omitted */ }

Builder for Mount.

Methods

impl MountBuilder[src]

pub fn destination<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self[src]

Destination is the absolute path where the mount will be placed in the container.

pub fn mount_type<VALUE: Into<Option<String>>>(
    &mut self,
    value: VALUE
) -> &mut Self
[src]

Type specifies the mount kind.

pub fn source<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self[src]

Source specifies the source path of the mount.

pub fn options<VALUE: Into<Vec<String>>>(&mut self, value: VALUE) -> &mut Self[src]

Options are fstab style mount options.

pub fn build(&self) -> Result<Mount, String>[src]

Builds a new Mount.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for MountBuilder[src]

impl Default for MountBuilder[src]

Auto Trait Implementations

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.