pub enum Test {
RelQuery(Vec<Segment>),
AbsQuery(JpQuery),
Function(Box<TestFunction>),
}Expand description
Enum representing different types of tests in a JSONPath query.
Variants§
RelQuery(Vec<Segment>)
Represents a relative query.
AbsQuery(JpQuery)
Represents an absolute query.
Function(Box<TestFunction>)
Represents a function test.
Implementations§
Trait Implementations§
Source§impl Query for Test
impl Query for Test
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 Test
Auto Trait Implementations§
impl Forget for Test
impl Freeze for Test
impl Move for Test
impl RefUnwindSafe for Test
impl Send for Test
impl Sync for Test
impl Unpin for Test
impl UnsafeUnpin for Test
impl UnwindSafe for Test
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