pub enum GuardError {
Malformed(String),
MissingVar(String),
TypeError(String),
FuelExceeded {
limit: usize,
},
CustomOpFailed {
op: String,
source: String,
},
}Expand description
Error returned by the high-level evaluate() tier.
Variants§
Malformed(String)
Structural AST problem or unsupported operator.
MissingVar(String)
{"var": "X"} where X’s root key is absent from the data object.
Detected via pre-walk; names the offending path explicitly.
TypeError(String)
Type coercion or argument-arity error from the evaluator.
FuelExceeded
In-loop node budget exhausted before evaluation completed.
CustomOpFailed
A registered custom operator returned Err(...).
Trait Implementations§
Source§impl Clone for GuardError
impl Clone for GuardError
Source§fn clone(&self) -> GuardError
fn clone(&self) -> GuardError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GuardError
impl Debug for GuardError
Source§impl Display for GuardError
impl Display for GuardError
impl Eq for GuardError
Source§impl Error for GuardError
impl Error for GuardError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for GuardError
impl PartialEq for GuardError
impl StructuralPartialEq for GuardError
Auto Trait Implementations§
impl Freeze for GuardError
impl RefUnwindSafe for GuardError
impl Send for GuardError
impl Sync for GuardError
impl Unpin for GuardError
impl UnsafeUnpin for GuardError
impl UnwindSafe for GuardError
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