#[non_exhaustive]pub enum SelectorOperator {
In,
NotIn,
Exists,
DoesNotExist,
}Expand description
Set-based operator for super::SelectorRequirement.
| Operator | Semantics |
|---|---|
In | label value ∈ {values} |
NotIn | label value ∉ {values} |
Exists | label key is present (values ignored) |
DoesNotExist | label key is absent (values ignored) |
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
In
Label value must be one of values.
NotIn
Label value must NOT be one of values.
Exists
Label key must exist (values are ignored).
DoesNotExist
Label key must NOT exist (values are ignored).
Trait Implementations§
Source§impl Clone for SelectorOperator
impl Clone for SelectorOperator
Source§fn clone(&self) -> SelectorOperator
fn clone(&self) -> SelectorOperator
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 SelectorOperator
impl Debug for SelectorOperator
Source§impl<'de> Deserialize<'de> for SelectorOperator
impl<'de> Deserialize<'de> for SelectorOperator
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 Display for SelectorOperator
impl Display for SelectorOperator
Source§impl Hash for SelectorOperator
impl Hash for SelectorOperator
Source§impl PartialEq for SelectorOperator
impl PartialEq for SelectorOperator
Source§impl Serialize for SelectorOperator
impl Serialize for SelectorOperator
impl Copy for SelectorOperator
impl Eq for SelectorOperator
impl StructuralPartialEq for SelectorOperator
Auto Trait Implementations§
impl Freeze for SelectorOperator
impl RefUnwindSafe for SelectorOperator
impl Send for SelectorOperator
impl Sync for SelectorOperator
impl Unpin for SelectorOperator
impl UnsafeUnpin for SelectorOperator
impl UnwindSafe for SelectorOperator
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