Enum ion_schema::violation::ViolationCode
source · 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§
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 copy 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
source§fn eq(&self, other: &ViolationCode) -> bool
fn eq(&self, other: &ViolationCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ViolationCode
impl StructuralPartialEq for ViolationCode
Auto Trait Implementations§
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