#[non_exhaustive]pub struct NodeAffinity {
pub key: String,
pub operator: Operator,
pub values: Vec<String>,
}Expand description
Specifies the NodeAffinity key, values, and affinity operator according to shared sole tenant node group affinities.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.key: StringKey for NodeAffinity.
operator: OperatorOperator for NodeAffinity.
values: Vec<String>Values for NodeAffinity.
Implementations§
Source§impl NodeAffinity
impl NodeAffinity
Trait Implementations§
Source§impl Clone for NodeAffinity
impl Clone for NodeAffinity
Source§fn clone(&self) -> NodeAffinity
fn clone(&self) -> NodeAffinity
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 NodeAffinity
impl Debug for NodeAffinity
Source§impl Default for NodeAffinity
impl Default for NodeAffinity
Source§fn default() -> NodeAffinity
fn default() -> NodeAffinity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NodeAffinitywhere
NodeAffinity: Default,
impl<'de> Deserialize<'de> for NodeAffinitywhere
NodeAffinity: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for NodeAffinity
impl Message for NodeAffinity
Source§impl PartialEq for NodeAffinity
impl PartialEq for NodeAffinity
Source§impl Serialize for NodeAffinity
impl Serialize for NodeAffinity
impl StructuralPartialEq for NodeAffinity
Auto Trait Implementations§
impl Freeze for NodeAffinity
impl RefUnwindSafe for NodeAffinity
impl Send for NodeAffinity
impl Sync for NodeAffinity
impl Unpin for NodeAffinity
impl UnwindSafe for NodeAffinity
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