pub struct JpQuery {
pub segments: Vec<Segment>,
}Expand description
Represents a JSONPath query with a list of segments.
Fields§
§segments: Vec<Segment>Implementations§
Source§impl JpQuery
impl JpQuery
Sourcepub fn execute_with_context<'a, T: Queryable>(
&self,
value: &'a T,
ctx: &mut JsonPathEvalContext,
) -> Queried<Vec<QueryRef<'a, T>>>
pub fn execute_with_context<'a, T: Queryable>( &self, value: &'a T, ctx: &mut JsonPathEvalContext, ) -> Queried<Vec<QueryRef<'a, T>>>
Processes the query like js_path_process, reusing what ctx keeps from the
earlier calls. One context serves any number of queries and documents.
Trait Implementations§
Source§impl Query for JpQuery
impl Query for JpQuery
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 JpQuery
Auto Trait Implementations§
impl Forget for JpQuery
impl Freeze for JpQuery
impl Move for JpQuery
impl RefUnwindSafe for JpQuery
impl Send for JpQuery
impl Sync for JpQuery
impl Unpin for JpQuery
impl UnsafeUnpin for JpQuery
impl UnwindSafe for JpQuery
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