pub enum Filter {
Or(Vec<Filter>),
And(Vec<Filter>),
Atom(FilterAtom),
}Expand description
Enum representing different types of filters in a JSONPath query.
Variants§
Or(Vec<Filter>)
Represents a logical OR filter.
And(Vec<Filter>)
Represents a logical AND filter.
Atom(FilterAtom)
Represents an atomic filter.
Trait Implementations§
Source§impl Query for Filter
impl Query for Filter
Source§fn process_with_context<'a, T: Queryable>(
&self,
state: State<'a, T>,
ctx: &mut JsonPathEvalContext,
) -> State<'a, T>
fn process_with_context<'a, T: Queryable>( &self, state: State<'a, T>, ctx: &mut JsonPathEvalContext, ) -> State<'a, T>
Processes the state, reusing what
ctx keeps.impl StructuralPartialEq for Filter
Auto Trait Implementations§
impl Forget for Filter
impl Freeze for Filter
impl Move 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