pub struct JsonPath { /* private fields */ }Expand description
A parsed JSONPath.
Implementations§
Source§impl JsonPath
impl JsonPath
Sourcepub fn is_definite(&self) -> bool
pub fn is_definite(&self) -> bool
True when the path can yield at most one value.
Sourcepub fn reference_steps(&self) -> Option<Vec<Step>>
pub fn reference_steps(&self) -> Option<Vec<Step>>
For a definite (reference) path, the chain of property names and
indexes it walks. None for an indefinite path.
Sourcepub fn normalized(&self) -> String
pub fn normalized(&self) -> String
Jayway-style normalized rendering, used in error messages.
Trait Implementations§
impl StructuralPartialEq for JsonPath
Auto Trait Implementations§
impl Forget for JsonPath
impl Freeze for JsonPath
impl Move for JsonPath
impl RefUnwindSafe for JsonPath
impl Send for JsonPath
impl Sync for JsonPath
impl Unpin for JsonPath
impl UnsafeUnpin 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