pub enum ViolationKind {
Format,
Occurrence,
Property,
Type,
}Variants§
Format
Not valid JSON / unknown property / structurally wrong.
Occurrence
Required field missing, or array cardinality violated.
Property
Value not allowed (enum, length, range).
Type
Wrong JSON data type.
Implementations§
Source§impl ViolationKind
impl ViolationKind
pub fn error_code(self) -> ErrorCode
Trait Implementations§
Source§impl Clone for ViolationKind
impl Clone for ViolationKind
impl Copy for ViolationKind
Source§impl Debug for ViolationKind
impl Debug for ViolationKind
impl Eq for ViolationKind
Source§impl PartialEq for ViolationKind
impl PartialEq for ViolationKind
impl StructuralPartialEq for ViolationKind
Auto Trait Implementations§
impl Freeze for ViolationKind
impl RefUnwindSafe for ViolationKind
impl Send for ViolationKind
impl Sync for ViolationKind
impl Unpin for ViolationKind
impl UnsafeUnpin for ViolationKind
impl UnwindSafe for ViolationKind
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