Enum jmespath::RuntimeError
[−]
[src]
pub enum RuntimeError { InvalidSlice, TooManyArguments { expected: usize, actual: usize, }, NotEnoughArguments { expected: usize, actual: usize, }, UnknownFunction(String), InvalidType { expected: String, actual: String, position: usize, }, InvalidReturnType { expected: String, actual: String, position: usize, invocation: usize, }, }
Runtime JMESPath error
Variants
InvalidSlice
Encountered when a slice expression uses a step of 0
TooManyArguments
Encountered when too many arguments are provided to a function.
Fields of TooManyArguments
expected: usize | Expeced number of arguments. |
actual: usize | Provided number of arguments. |
NotEnoughArguments
Encountered when too few arguments are provided to a function.
Fields of NotEnoughArguments
expected: usize | Expeced number of arguments. |
actual: usize | Provided number of arguments. |
UnknownFunction(String)
Encountered when an unknown function is called.
InvalidType
Encountered when a type of variable given to a function is invalid.
Fields of InvalidType
expected: String | Expected type. |
actual: String | Provided type. |
position: usize | Argument position when calling the function. |
InvalidReturnType
Encountered when an expression reference returns an invalid type.
Fields of InvalidReturnType
expected: String | Expected return type. |
actual: String | Actual return type. |
position: usize | Argument position from which the expression reference was invoked. |
invocation: usize | Which invocation iteration of the expression reference failed. |
Trait Implementations
impl Clone for RuntimeError
[src]
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for RuntimeError
[src]
impl PartialEq for RuntimeError
[src]
fn eq(&self, __arg_0: &RuntimeError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RuntimeError) -> bool
This method tests for !=
.