Struct serde_json_bytes::path::JsonPathInst
source · pub struct JsonPathInst { /* private fields */ }Implementations§
source§impl JsonPathInst
impl JsonPathInst
pub fn new(path: &str) -> Result<Self, JsonPathParserError<'_>>
pub fn select<'path: 'value, 'value>( &'path self, value: &'value Value, ) -> impl Iterator<Item = Cow<'value, Value>> + 'value
pub fn select_paths_and_values<'path: 'value, 'value>( &'path self, value: &'value Value, ) -> impl Iterator<Item = (String, Cow<'value, Value>)> + 'value
pub fn find<'path: 'value, 'value>(&'path self, value: &'value Value) -> Value
Trait Implementations§
source§impl Clone for JsonPathInst
impl Clone for JsonPathInst
source§fn clone(&self) -> JsonPathInst
fn clone(&self) -> JsonPathInst
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsonPathInst
impl RefUnwindSafe for JsonPathInst
impl Send for JsonPathInst
impl Sync for JsonPathInst
impl Unpin for JsonPathInst
impl UnwindSafe for JsonPathInst
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