pub enum SchemaErrorKind {
NotMap,
UnknownType {
tag: String,
},
MissingField {
field: String,
},
WrongType {
field: String,
expected: &'static str,
},
InvalidValue {
field: String,
message: String,
},
}Expand description
What went wrong while building a validator from a schema document.
Variants§
NotMap
A validator node was not a map.
UnknownType
The "type" tag named a validator the registry does not know.
MissingField
A required field was absent.
WrongType
A field had the wrong value type.
InvalidValue
A field had a structurally valid but semantically invalid value.
Trait Implementations§
Source§impl Clone for SchemaErrorKind
impl Clone for SchemaErrorKind
Source§fn clone(&self) -> SchemaErrorKind
fn clone(&self) -> SchemaErrorKind
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 SchemaErrorKind
impl Debug for SchemaErrorKind
Source§impl Display for SchemaErrorKind
impl Display for SchemaErrorKind
Source§impl PartialEq for SchemaErrorKind
impl PartialEq for SchemaErrorKind
Source§fn eq(&self, other: &SchemaErrorKind) -> bool
fn eq(&self, other: &SchemaErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SchemaErrorKind
Auto Trait Implementations§
impl Freeze for SchemaErrorKind
impl RefUnwindSafe for SchemaErrorKind
impl Send for SchemaErrorKind
impl Sync for SchemaErrorKind
impl Unpin for SchemaErrorKind
impl UnsafeUnpin for SchemaErrorKind
impl UnwindSafe for SchemaErrorKind
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