#[non_exhaustive]pub enum SchemaCompilationErrorKind {
Other,
InvalidPattern,
PatternTooLarge(PatternTooLargeError),
PatternMatchLimit(PatternMatchLimitError),
}Expand description
What kind of error a SchemaCompilationError is.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Other
Any error that is not about a regular expression: an unresolvable reference, for one.
InvalidPattern
A pattern, or a key of patternProperties, is not a valid ECMA-262 regular expression.
PatternTooLarge(PatternTooLargeError)
A regular expression is over a limit of size. It is not the error of one that is not valid: the pattern was not read to its end, so nothing is known of whether it is valid.
PatternMatchLimit(PatternMatchLimitError)
Matching a regular expression against a property name the schema declares, which is done once when the
schema is compiled, reached the limit of a match (see CompileOptions::pattern_match_limit).
Trait Implementations§
Source§impl Clone for SchemaCompilationErrorKind
impl Clone for SchemaCompilationErrorKind
Source§impl Debug for SchemaCompilationErrorKind
impl Debug for SchemaCompilationErrorKind
impl Eq for SchemaCompilationErrorKind
impl StructuralPartialEq for SchemaCompilationErrorKind
Auto Trait Implementations§
impl Freeze for SchemaCompilationErrorKind
impl RefUnwindSafe for SchemaCompilationErrorKind
impl Send for SchemaCompilationErrorKind
impl Sync for SchemaCompilationErrorKind
impl Unpin for SchemaCompilationErrorKind
impl UnsafeUnpin for SchemaCompilationErrorKind
impl UnwindSafe for SchemaCompilationErrorKind
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
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
Compare self to
key and return true if they are equal.