pub struct ClusterVolumeSpec {
pub access_mode: Option<ClusterVolumeSpecAccessModeInlineItem>,
pub group: Option<String>,
}
Expand description
Cluster-specific options used to create the volume.
Fields§
§access_mode: Option<ClusterVolumeSpecAccessModeInlineItem>
Defines how the volume is used by tasks.
group: Option<String>
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.
Trait Implementations§
Source§impl Clone for ClusterVolumeSpec
impl Clone for ClusterVolumeSpec
Source§fn clone(&self) -> ClusterVolumeSpec
fn clone(&self) -> ClusterVolumeSpec
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 ClusterVolumeSpec
impl Debug for ClusterVolumeSpec
Source§impl<'de> Deserialize<'de> for ClusterVolumeSpec
impl<'de> Deserialize<'de> for ClusterVolumeSpec
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterVolumeSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ClusterVolumeSpec, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClusterVolumeSpec
impl PartialEq for ClusterVolumeSpec
Source§impl Serialize for ClusterVolumeSpec
impl Serialize for ClusterVolumeSpec
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ClusterVolumeSpec
Auto Trait Implementations§
impl Freeze for ClusterVolumeSpec
impl RefUnwindSafe for ClusterVolumeSpec
impl Send for ClusterVolumeSpec
impl Sync for ClusterVolumeSpec
impl Unpin for ClusterVolumeSpec
impl UnwindSafe for ClusterVolumeSpec
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