pub struct JsonPath { /* private fields */ }
Expand description
A JSON Path value.
Implementations§
Source§impl JsonPath
impl JsonPath
Sourcepub fn query<'a, T: JsonRef<'a>>(
&self,
value: T,
) -> Result<Vec<Cow<'a, T::Owned>>, Error>
pub fn query<'a, T: JsonRef<'a>>( &self, value: T, ) -> Result<Vec<Cow<'a, T::Owned>>, Error>
Evaluate the JSON path against the given JSON value.
Sourcepub fn query_with_vars<'a, T: JsonRef<'a>>(
&self,
value: T,
vars: T,
) -> Result<Vec<Cow<'a, T::Owned>>, Error>
pub fn query_with_vars<'a, T: JsonRef<'a>>( &self, value: T, vars: T, ) -> Result<Vec<Cow<'a, T::Owned>>, Error>
Evaluate the JSON path against the given JSON value with variables.
Sourcepub fn query_first<'a, T: JsonRef<'a>>(
&self,
value: T,
) -> Result<Option<Cow<'a, T::Owned>>, Error>
pub fn query_first<'a, T: JsonRef<'a>>( &self, value: T, ) -> Result<Option<Cow<'a, T::Owned>>, Error>
Evaluate the JSON path against the given JSON value.
Sourcepub fn query_first_with_vars<'a, T: JsonRef<'a>>(
&self,
value: T,
vars: T,
) -> Result<Option<Cow<'a, T::Owned>>, Error>
pub fn query_first_with_vars<'a, T: JsonRef<'a>>( &self, value: T, vars: T, ) -> Result<Option<Cow<'a, T::Owned>>, Error>
Evaluate the JSON path against the given JSON value with variables.
Trait Implementations§
impl Eq for JsonPath
impl StructuralPartialEq for JsonPath
Auto Trait Implementations§
impl Freeze for JsonPath
impl RefUnwindSafe for JsonPath
impl Send for JsonPath
impl Sync for JsonPath
impl Unpin for JsonPath
impl UnwindSafe for JsonPath
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