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,
},
}
Expand description
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.
NotEnoughArguments
Encountered when too few arguments are provided to a function.
UnknownFunction(String)
Encountered when an unknown function is called.
InvalidType
Encountered when a type of variable given to a function is invalid.
Fields
InvalidReturnType
Encountered when an expression reference returns an invalid type.
Trait Implementations§
Source§impl Clone for RuntimeError
impl Clone for RuntimeError
Source§fn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RuntimeError
impl Debug for RuntimeError
Source§impl Display for RuntimeError
impl Display for RuntimeError
Source§impl PartialEq for RuntimeError
impl PartialEq for RuntimeError
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations§
impl Freeze for RuntimeError
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more