pub struct SchemaEvaluationDepthError;Expand description
The validation was abandoned at a limit, and gave no answer. It is the error of the functions whose error type
was there before the limit of a match was (validate, validate_instance, evaluate, evaluate_instance, and
inside crate::JsonValidationError::DepthExceeded validate_json and evaluate_json).
The name is from when there was one limit: an evaluation that recursed in place beyond max_depth (a schema
that loops without consuming the instance). A match of a regular expression that reached its limit (see
CompileOptions::pattern_match_limit) is reported as this error too. The type has one value, so it does not
say which limit it was, and its message names both. The try_ functions (Validator::try_validate and the
rest) return a SchemaEvaluationError, which says which.
Trait Implementations§
Source§impl Clone for SchemaEvaluationDepthError
impl Clone for SchemaEvaluationDepthError
impl Copy for SchemaEvaluationDepthError
Source§impl Debug for SchemaEvaluationDepthError
impl Debug for SchemaEvaluationDepthError
Source§impl Display for SchemaEvaluationDepthError
impl Display for SchemaEvaluationDepthError
impl Eq for SchemaEvaluationDepthError
Source§impl Error for SchemaEvaluationDepthError
impl Error for SchemaEvaluationDepthError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
impl StructuralPartialEq for SchemaEvaluationDepthError
Auto Trait Implementations§
impl Freeze for SchemaEvaluationDepthError
impl RefUnwindSafe for SchemaEvaluationDepthError
impl Send for SchemaEvaluationDepthError
impl Sync for SchemaEvaluationDepthError
impl Unpin for SchemaEvaluationDepthError
impl UnsafeUnpin for SchemaEvaluationDepthError
impl UnwindSafe for SchemaEvaluationDepthError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.