Struct docker_api::opts::VolumeCreateOptsBuilder
source · [−]pub struct VolumeCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for VolumeCreateOpts.
Implementations
sourceimpl VolumeCreateOptsBuilder
impl VolumeCreateOptsBuilder
sourcepub fn build(self) -> VolumeCreateOpts
pub fn build(self) -> VolumeCreateOpts
Finish building VolumeCreateOpts.
sourceimpl VolumeCreateOptsBuilder
impl VolumeCreateOptsBuilder
sourcepub fn name(self, name: impl Serialize) -> Self
pub fn name(self, name: impl Serialize) -> Self
The new volume’s name. If not specified, Docker generates a name.
sourcepub fn driver_opts<K, V>(
self,
driver_opts: impl IntoIterator<Item = (K, V)>
) -> Self where
K: Serialize + Eq + Hash,
V: Serialize,
pub fn driver_opts<K, V>(
self,
driver_opts: impl IntoIterator<Item = (K, V)>
) -> Self where
K: Serialize + Eq + Hash,
V: Serialize,
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
Trait Implementations
sourceimpl Clone for VolumeCreateOptsBuilder
impl Clone for VolumeCreateOptsBuilder
sourcefn clone(&self) -> VolumeCreateOptsBuilder
fn clone(&self) -> VolumeCreateOptsBuilder
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VolumeCreateOptsBuilder
impl Debug for VolumeCreateOptsBuilder
sourceimpl Default for VolumeCreateOptsBuilder
impl Default for VolumeCreateOptsBuilder
sourcefn default() -> VolumeCreateOptsBuilder
fn default() -> VolumeCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for VolumeCreateOptsBuilder
impl Send for VolumeCreateOptsBuilder
impl Sync for VolumeCreateOptsBuilder
impl Unpin for VolumeCreateOptsBuilder
impl UnwindSafe for VolumeCreateOptsBuilder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more