Struct docker_api::opts::NodeUpdateOpts
source · [−]pub struct NodeUpdateOpts { /* private fields */ }
Available on crate feature
swarm
only.Implementations
sourceimpl 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.
pub fn serialize(&self) -> Result<String>
pub fn version(&self) -> &str
Trait Implementations
sourceimpl Debug for NodeUpdateOpts
impl Debug for NodeUpdateOpts
sourceimpl Serialize for NodeUpdateOpts
impl Serialize for NodeUpdateOpts
Auto Trait Implementations
impl RefUnwindSafe for NodeUpdateOpts
impl Send for NodeUpdateOpts
impl Sync for NodeUpdateOpts
impl Unpin for NodeUpdateOpts
impl UnwindSafe for NodeUpdateOpts
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more