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)>) -> Self
pub fn labels<K, V>(self, labels: impl IntoIterator<Item = (K, V)>) -> Self
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 serialize_vec(&self) -> Result<Vec<u8>>
pub fn version(&self) -> &str
Trait Implementations§
Source§impl Debug for NodeUpdateOpts
impl Debug for NodeUpdateOpts
Auto Trait Implementations§
impl Freeze for NodeUpdateOpts
impl RefUnwindSafe for NodeUpdateOpts
impl Send for NodeUpdateOpts
impl Sync for NodeUpdateOpts
impl Unpin for NodeUpdateOpts
impl UnwindSafe for NodeUpdateOpts
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