pub struct ClusterVolumeUpdateOptsBuilder { /* private fields */ }
Expand description
A builder struct for ClusterVolumeUpdateOpts.
Implementations§
Source§impl ClusterVolumeUpdateOptsBuilder
impl ClusterVolumeUpdateOptsBuilder
Sourcepub fn new(version: impl Into<i64>) -> Self
pub fn new(version: impl Into<i64>) -> Self
A builder struct for ClusterVolumeUpdateOpts. The version number of the volume being updated. This is required to avoid conflicting writes. Found in the volume’s ClusterVolume field.
Sourcepub fn build(self) -> ClusterVolumeUpdateOpts
pub fn build(self) -> ClusterVolumeUpdateOpts
Finish building ClusterVolumeUpdateOpts.
Source§impl ClusterVolumeUpdateOptsBuilder
impl ClusterVolumeUpdateOptsBuilder
Sourcepub fn group(self, group: impl Serialize) -> Self
pub fn group(self, group: impl Serialize) -> Self
Group defines the volume group of this volume. Volumes belonging to the same group can be referred to by group name when creating Services. Referring to a volume by group instructs Swarm to treat volumes in that group interchangeably for the purpose of scheduling. Volumes with an empty string for a group technically all belong to the same, emptystring group.
Sourcepub fn access_mode(self, access_mode: Value) -> Self
pub fn access_mode(self, access_mode: Value) -> Self
Defines how the volume is used by tasks.
Trait Implementations§
Source§impl Clone for ClusterVolumeUpdateOptsBuilder
impl Clone for ClusterVolumeUpdateOptsBuilder
Source§fn clone(&self) -> ClusterVolumeUpdateOptsBuilder
fn clone(&self) -> ClusterVolumeUpdateOptsBuilder
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 ClusterVolumeUpdateOptsBuilder
impl Default for ClusterVolumeUpdateOptsBuilder
Source§fn default() -> ClusterVolumeUpdateOptsBuilder
fn default() -> ClusterVolumeUpdateOptsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClusterVolumeUpdateOptsBuilder
impl RefUnwindSafe for ClusterVolumeUpdateOptsBuilder
impl Send for ClusterVolumeUpdateOptsBuilder
impl Sync for ClusterVolumeUpdateOptsBuilder
impl Unpin for ClusterVolumeUpdateOptsBuilder
impl UnwindSafe for ClusterVolumeUpdateOptsBuilder
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