#[non_exhaustive]pub enum ViolationCode {
Show 21 variants
AllTypesNotMatched,
AnnotationMismatched,
ElementMismatched,
ElementNotDistinct,
FieldNamesMismatched,
FieldNamesNotDistinct,
FieldsNotMatched,
InvalidIeee754Float,
InvalidLength,
InvalidNull,
InvalidOpenContent,
InvalidValue,
MissingAnnotation,
MissingValue,
MoreThanOneTypeMatched,
NoTypesMatched,
RegexMismatched,
TypeConstraintsUnsatisfied,
TypeMatched,
TypeMismatched,
UnexpectedAnnotation,
}Expand description
Represents violation code that indicates the type of the violation
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.
AllTypesNotMatched
AnnotationMismatched
ElementMismatched
ElementNotDistinct
FieldNamesMismatched
FieldNamesNotDistinct
FieldsNotMatched
InvalidIeee754Float
InvalidLength
InvalidNull
InvalidOpenContent
InvalidValue
MissingAnnotation
MissingValue
MoreThanOneTypeMatched
NoTypesMatched
RegexMismatched
TypeConstraintsUnsatisfied
TypeMatched
TypeMismatched
UnexpectedAnnotation
Trait Implementations§
Source§impl Clone for ViolationCode
impl Clone for ViolationCode
Source§fn clone(&self) -> ViolationCode
fn clone(&self) -> ViolationCode
Returns a duplicate of the value. Read more
1.0.0 · 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 ViolationCode
impl Debug for ViolationCode
Source§impl Display for ViolationCode
impl Display for ViolationCode
Source§impl Hash for ViolationCode
impl Hash for ViolationCode
Source§impl PartialEq for ViolationCode
impl PartialEq for ViolationCode
impl Eq for ViolationCode
impl StructuralPartialEq for ViolationCode
Auto Trait Implementations§
impl Freeze for ViolationCode
impl RefUnwindSafe for ViolationCode
impl Send for ViolationCode
impl Sync for ViolationCode
impl Unpin for ViolationCode
impl UnwindSafe for ViolationCode
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<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more