Enum jsonpath_rust::parser::model::JsonPath
source · pub enum JsonPath {
Root,
Field(String),
Chain(Vec<JsonPath>),
Descent(String),
DescentW,
Index(JsonPathIndex),
Current(Box<JsonPath>),
Wildcard,
Empty,
Fn(Function),
}
Expand description
The basic structures for parsing json paths. The common logic of the structures pursues to correspond the internal parsing structure.
Variants§
Root
The $ operator
Field(String)
Field represents key
Chain(Vec<JsonPath>)
The whole chain of the path.
Descent(String)
The .. operator
DescentW
The ..* operator
Index(JsonPathIndex)
The indexes for array
Current(Box<JsonPath>)
The @ operator
Wildcard
The * operator
Empty
The item uses to define the unresolved state
Fn(Function)
Functions that can calculate some expressions
Implementations§
Trait Implementations§
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