#[non_exhaustive]pub struct NodeAffinity {
pub key: String,
pub operator: Operator,
pub values: Vec<String>,
/* private fields */
}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
pub fn new() -> Self
Sourcepub fn set_operator<T: Into<Operator>>(self, v: T) -> Self
pub fn set_operator<T: Into<Operator>>(self, v: T) -> Self
Sets the value of operator.
Sourcepub fn set_values<T, V>(self, v: T) -> Self
pub fn set_values<T, V>(self, v: T) -> Self
Sets the value of values.
Trait Implementations§
Source§impl Clone for NodeAffinity
impl Clone for NodeAffinity
Source§fn clone(&self) -> NodeAffinity
fn clone(&self) -> NodeAffinity
Returns a duplicate 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 Message for NodeAffinity
impl Message for NodeAffinity
Source§impl PartialEq for NodeAffinity
impl PartialEq 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