Struct jsonpath_lib::JsonSelector
source · pub struct JsonSelector<'a> { /* private fields */ }
Implementations§
source§impl<'a> JsonSelector<'a>
impl<'a> JsonSelector<'a>
pub fn new(parser: PathParser<'a>) -> Self
pub fn new_ref(parser: Rc<PathParser<'a>>) -> Self
pub fn reset_parser(&mut self, parser: PathParser<'a>) -> &mut Self
pub fn reset_parser_ref(&mut self, parser: Rc<PathParser<'a>>) -> &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§
source§impl<'a> Debug for JsonSelector<'a>
impl<'a> Debug for JsonSelector<'a>
source§impl<'a> Default for JsonSelector<'a>
impl<'a> Default for JsonSelector<'a>
source§fn default() -> JsonSelector<'a>
fn default() -> JsonSelector<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> RefUnwindSafe for JsonSelector<'a>
impl<'a> !Send for JsonSelector<'a>
impl<'a> !Sync for JsonSelector<'a>
impl<'a> Unpin for JsonSelector<'a>
impl<'a> UnwindSafe for JsonSelector<'a>
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