#[non_exhaustive]pub enum LabelFilterExpr {
Pred(LabelFilterPred),
And(Box<LabelFilterExpr>, Box<LabelFilterExpr>),
Or(Box<LabelFilterExpr>, Box<LabelFilterExpr>),
}Expand description
A label-filter expression: comparisons combined with and/or.
A comma between predicates is sugar for and. and binds tighter
than or.
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.
Pred(LabelFilterPred)
And(Box<LabelFilterExpr>, Box<LabelFilterExpr>)
Or(Box<LabelFilterExpr>, Box<LabelFilterExpr>)
Trait Implementations§
Source§impl Clone for LabelFilterExpr
impl Clone for LabelFilterExpr
Source§impl Debug for LabelFilterExpr
impl Debug for LabelFilterExpr
Source§impl PartialEq for LabelFilterExpr
impl PartialEq for LabelFilterExpr
impl StructuralPartialEq for LabelFilterExpr
Auto Trait Implementations§
impl Freeze for LabelFilterExpr
impl RefUnwindSafe for LabelFilterExpr
impl Send for LabelFilterExpr
impl Sync for LabelFilterExpr
impl Unpin for LabelFilterExpr
impl UnsafeUnpin for LabelFilterExpr
impl UnwindSafe for LabelFilterExpr
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