pub struct VolumeCreateOptsBuilder { /* private fields */ }
Expand description
A builder struct for VolumeCreateOpts.
Implementations§
Source§impl VolumeCreateOptsBuilder
impl VolumeCreateOptsBuilder
Sourcepub fn build(self) -> VolumeCreateOpts
pub fn build(self) -> VolumeCreateOpts
Finish building VolumeCreateOpts.
Source§impl 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
pub fn driver_opts<K, V>( self, driver_opts: impl IntoIterator<Item = (K, V)>, ) -> Self
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
Sourcepub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self
User-defined key/value metadata.
Sourcepub fn cluster_spec(self, cluster_spec: ClusterVolumeSpec) -> Self
pub fn cluster_spec(self, cluster_spec: ClusterVolumeSpec) -> Self
Cluster-specific options used to create the volume.
Trait Implementations§
Source§impl Clone for VolumeCreateOptsBuilder
impl Clone for VolumeCreateOptsBuilder
Source§fn clone(&self) -> VolumeCreateOptsBuilder
fn clone(&self) -> VolumeCreateOptsBuilder
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 Debug for VolumeCreateOptsBuilder
impl Debug for VolumeCreateOptsBuilder
Source§impl Default for VolumeCreateOptsBuilder
impl Default for VolumeCreateOptsBuilder
Source§fn default() -> VolumeCreateOptsBuilder
fn default() -> VolumeCreateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VolumeCreateOptsBuilder
impl RefUnwindSafe for VolumeCreateOptsBuilder
impl Send for VolumeCreateOptsBuilder
impl Sync for VolumeCreateOptsBuilder
impl Unpin for VolumeCreateOptsBuilder
impl UnwindSafe for VolumeCreateOptsBuilder
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