#[non_exhaustive]pub enum ErrorKind {
CompilationFailure,
InvalidRule,
ValidationFailure,
InvalidResult,
EvaluationError,
UnsupportedReference,
SchemaTooDeep,
}validation only.Expand description
The kind of error that occurred during validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CompilationFailure
CEL expression syntax error.
InvalidRule
Malformed rule JSON.
ValidationFailure
Rule evaluated to false.
InvalidResult
Rule returned a non-bool value.
EvaluationError
Runtime evaluation error.
UnsupportedReference
The rule referenced a CEL function or identifier this build does not
provide — typically a CEL macro not yet supported by the cel crate
(sortBy, cel.bind, the two-argument comprehensions), or an
extension-function feature disabled at compile time. The rule is
well-formed but cannot be evaluated client-side, so the object is
rejected (fail-closed). Distinct from Self::EvaluationError so
callers can tell a coverage gap apart from a genuine runtime error.
SchemaTooDeep
Schema nesting exceeded the maximum supported depth. The over-deep subtree was refused rather than skipped, so validation fails closed instead of silently passing rules it never evaluated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErrorKind
impl<'de> Deserialize<'de> for ErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> AnyExt for T
impl<T> AnyExt for T
Source§fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
fn downcast_ref<T>(this: &Self) -> Option<&T>where
T: Any,
T behind referenceSource§fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
fn downcast_mut<T>(this: &mut Self) -> Option<&mut T>where
T: Any,
T behind mutable referenceSource§fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
fn downcast_rc<T>(this: Rc<Self>) -> Result<Rc<T>, Rc<Self>>where
T: Any,
T behind Rc pointerSource§fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
fn downcast_arc<T>(this: Arc<Self>) -> Result<Arc<T>, Arc<Self>>where
T: Any,
T behind Arc pointer