Enum jmespath::RuntimeError
source · [−]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
Fields
expected: String
Expected type.
actual: String
Provided type.
position: usize
Argument position when calling the function.
Encountered when a type of variable given to a function is invalid.
InvalidReturnType
Fields
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.
Encountered when an expression reference returns an invalid type.
Trait Implementations
sourceimpl Clone for RuntimeError
impl Clone for RuntimeError
sourcefn clone(&self) -> RuntimeError
fn clone(&self) -> RuntimeError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RuntimeError
impl Debug for RuntimeError
sourceimpl Display for RuntimeError
impl Display for RuntimeError
sourceimpl PartialEq<RuntimeError> for RuntimeError
impl PartialEq<RuntimeError> for RuntimeError
sourcefn eq(&self, other: &RuntimeError) -> bool
fn eq(&self, other: &RuntimeError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &RuntimeError) -> bool
fn ne(&self, other: &RuntimeError) -> bool
This method tests for !=
.
impl StructuralPartialEq for RuntimeError
Auto Trait Implementations
impl RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl UnwindSafe for RuntimeError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more