Struct docker_api::api::volume::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<N>(self, name: N) -> Self where
N: AsRef<str> + Serialize,
pub fn name<N>(self, name: N) -> Self where
N: AsRef<str> + Serialize,
The new volume’s name. If not specified, Docker generates a name.
sourcepub fn driver<D>(self, driver: D) -> Self where
D: AsRef<str> + Serialize,
pub fn driver<D>(self, driver: D) -> Self where
D: AsRef<str> + Serialize,
Name of the volume driver to use.
Trait Implementations
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