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