pub enum Filter {
LabelEq {
field: usize,
value: u64,
},
LabelIn {
field: usize,
values: HashSet<u64>,
},
LabelLt {
field: usize,
value: u64,
},
LabelGt {
field: usize,
value: u64,
},
LabelRange {
field: usize,
min: u64,
max: u64,
},
And(Vec<Filter>),
Or(Vec<Filter>),
None,
}Expand description
A single filter condition
Variants§
LabelEq
Label at field index equals value
LabelIn
Label at field index is in set
LabelLt
Label at field index less than value
LabelGt
Label at field index greater than value
LabelRange
Label at field index in range [min, max]
And(Vec<Filter>)
Logical AND of filters
Or(Vec<Filter>)
Logical OR of filters
None
No filter (match all)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnwindSafe for Filter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more