Struct jsonpath_lib::Selector
source · pub struct Selector<'a, 'b> { /* private fields */ }
👎Deprecated since 0.4.0: Please use
JsonSelector
Implementations§
source§impl<'a, 'b> Selector<'a, 'b>
impl<'a, 'b> Selector<'a, 'b>
pub fn new() -> Self
pub fn str_path(&mut self, path: &str) -> Result<&mut Self, JsonPathError>
pub fn node_ref(&self) -> Option<&Node>
pub fn compiled_path(&mut self, node: &'b Node) -> &mut Self
pub fn reset_value(&mut self) -> &mut Self
pub fn value(&mut self, v: &'a Value) -> &mut Self
pub fn select_as<T: DeserializeOwned>( &mut self ) -> Result<Vec<T>, JsonPathError>
pub fn select_as_str(&mut self) -> Result<String, JsonPathError>
pub fn select(&mut self) -> Result<Vec<&'a Value>, JsonPathError>
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b> RefUnwindSafe for Selector<'a, 'b>
impl<'a, 'b> Send for Selector<'a, 'b>
impl<'a, 'b> Sync for Selector<'a, 'b>
impl<'a, 'b> Unpin for Selector<'a, 'b>
impl<'a, 'b> UnwindSafe for Selector<'a, 'b>
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