pub struct Filter {
pub must: Vec<Condition>,
pub should: Vec<Condition>,
pub must_not: Vec<Condition>,
}Expand description
A Boolean point filter.
Every must condition and no must_not condition must match. When should
is non-empty, at least one should condition must also match.
Fields§
§must: Vec<Condition>Conditions that must all match.
should: Vec<Condition>Conditions of which at least one must match when the list is non-empty.
must_not: Vec<Condition>Conditions that must not match.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Filter
impl<'de> Deserialize<'de> for Filter
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
Auto Trait Implementations§
impl Freeze for Filter
impl RefUnwindSafe for Filter
impl Send for Filter
impl Sync for Filter
impl Unpin for Filter
impl UnsafeUnpin 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