Struct docker_api::opts::NodeUpdateOpts
source · pub struct NodeUpdateOpts { /* private fields */ }
Available on crate feature
swarm
only.Implementations§
source§impl NodeUpdateOpts
impl NodeUpdateOpts
sourcepub fn builder<V: Into<String>>(version: V) -> NodeUpdateOptsBuilder
pub fn builder<V: Into<String>>(version: V) -> NodeUpdateOptsBuilder
return a new instance of a builder for Opts
sourcepub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Selfwhere
K: Serialize + Eq + Hash,
V: Serialize,
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Selfwhere K: Serialize + Eq + Hash, V: Serialize,
User-defined key/value metadata
sourcepub fn role(self, role: NodeSpecRoleInlineItem) -> Self
pub fn role(self, role: NodeSpecRoleInlineItem) -> Self
Role of the node.
sourcepub fn availability(self, availability: NodeSpecAvailabilityInlineItem) -> Self
pub fn availability(self, availability: NodeSpecAvailabilityInlineItem) -> Self
Availability of the node.