pub enum JsonPathQueryNode {
    Root(Option<Box<JsonPathQueryNode>>),
    Child(LabelOption<Box<JsonPathQueryNode>>),
    Descendant(LabelOption<Box<JsonPathQueryNode>>),
}
Expand description

Linked list structure of a JSONPath query.

Variants§

§

Root(Option<Box<JsonPathQueryNode>>)

The first link in the list representing the root ‘$’ character.

§

Child(LabelOption<Box<JsonPathQueryNode>>)

Represents direct descendant (‘.’ token).

§

Descendant(LabelOption<Box<JsonPathQueryNode>>)

Represents recursive descent (‘..’ token).

Implementations§

Retrieve the child of the node or None if it is the last one on the list.

Create an iterator over nodes of the query in sequence, starting from the root.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Returns true iff the type is JsonPathQueryNode::Root.
Returns true iff the type is JsonPathQueryNode::Descendant.
Returns true iff the type is JsonPathQueryNode::Child.
If the type is JsonPathQueryNode::Descendant or JsonPathQueryNode::Child returns the label it represents; otherwise, None.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.