pub struct Runtime { /* private fields */ }
Expand description

Compiles JMESPath expressions.

Most use cases don’t need to worry about how Runtime works. You really only need to create your own Runtimes if you are utilizing custom functions in your expressions.

Implementations

Creates a new Runtime.

Creates a new JMESPath expression from an expression string.

The provided expression is expected to adhere to the JMESPath grammar: https://jmespath.org/specification.html

Adds a new function to the runtime.

Removes a function from the runtime.

Returns the function that was removed if it was found.

Gets a function by name from the runtime.

Registers all of the builtin JMESPath functions with the runtime.

Trait Implementations

Returns the “default value” for a type. Read more

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.

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.