Type Alias NodeUpdateBodyParam

Source
pub type NodeUpdateBodyParam = NodeSpec;

Aliased Type§

pub struct NodeUpdateBodyParam {
    pub availability: Option<String>,
    pub labels: Option<HashMap<String, String>>,
    pub name: Option<String>,
    pub role: Option<String>,
}

Fields§

§availability: Option<String>

Availability of the node.

§labels: Option<HashMap<String, String>>

User-defined key/value metadata.

§name: Option<String>

Name for the node.

§role: Option<String>

Role of the node.

Trait Implementations

Source§

impl Clone for NodeSpec

Source§

fn clone(&self) -> NodeSpec

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for NodeSpec

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<NodeSpec, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for NodeSpec

Source§

fn eq(&self, other: &NodeSpec) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for NodeSpec

Source§

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
Source§

impl StructuralPartialEq for NodeSpec