pub struct MountBuilder { /* private fields */ }
Expand description
Builder for Mount
.
Implementations§
Source§impl MountBuilder
impl MountBuilder
Sourcepub fn destination<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn destination<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Destination is the absolute path where the mount will be placed in the container.
Sourcepub fn mount_type<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mount_type<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Type specifies the mount kind.
Sourcepub fn source<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn source<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Source specifies the source path of the mount.
Trait Implementations§
Source§impl Clone for MountBuilder
impl Clone for MountBuilder
Source§fn clone(&self) -> MountBuilder
fn clone(&self) -> MountBuilder
Returns a copy 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 Default for MountBuilder
impl Default for MountBuilder
Source§fn default() -> MountBuilder
fn default() -> MountBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MountBuilder
impl RefUnwindSafe for MountBuilder
impl Send for MountBuilder
impl Sync for MountBuilder
impl Unpin for MountBuilder
impl UnwindSafe for MountBuilder
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