Struct docker_api::opts::ClusterVolumeUpdateOptsBuilder
source · 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