[−][src]Enum jmespatch::ast::Ast
A JMESPath expression abstract syntax tree.
Variants
Compares two nodes using a comparator, returning true/false.
Fields of Comparison
If predicate
evaluates to a truthy value, returns the
result then
Fields of Condition
Returns the current node.
Fields of Identity
offset: usize
Approximate absolute position in the parsed expression.
Used by functions to dynamically evaluate argument values.
Fields of Expref
Evaluates the node, then flattens it one level.
Fields of Flatten
Function name and a vec or function argument expressions.
Fields of Function
Extracts a key by name from a map.
Fields of Field
Extracts an index from a Vec.
Fields of Index
Resolves to a literal value.
Fields of Literal
Evaluates to a list of evaluated expressions.
Fields of MultiList
Evaluates to a map of key value pairs.
Fields of MultiHash
offset: usize
Approximate absolute position in the parsed expression.
elements: Vec<KeyValuePair>
Elements of the hash
Evaluates to true/false based on if the expression is not truthy.
Fields of Not
Evaluates LHS, and pushes each value through RHS.
Fields of Projection
Evaluates LHS. If it resolves to an object, returns a Vec of values.
Fields of ObjectValues
Evaluates LHS. If not truthy returns. Otherwise evaluates RHS.
Fields of And
Evaluates LHS. If truthy returns. Otherwise evaluates RHS.
Fields of Or
Returns a slice of a vec, using start, stop, and step.
Fields of Slice
Evaluates RHS, then provides that value to the evaluation of RHS.
Fields of Subexpr
Trait Implementations
impl Clone for Ast
[src]
impl Debug for Ast
[src]
impl Display for Ast
[src]
impl PartialEq<Ast> for Ast
[src]
impl StructuralPartialEq for Ast
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Ast
impl !Send for Ast
impl !Sync for Ast
impl Unpin for Ast
impl !UnwindSafe for Ast
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,