pub enum ValidationErrorType {
Show 19 variants
UnknownElement,
UnknownAttribute,
MissingRequiredElement,
MissingRequiredAttribute,
InvalidAttributeValue,
InvalidContent,
InvalidTextContent,
TooManyOccurrences,
TooFewOccurrences,
ElementOutOfOrder,
UnexpectedElement,
NamespaceMismatch,
SchemaNotFound,
IdentityConstraint,
TypeNotFound,
FacetViolation,
ContentModelViolation,
UnclosedElement,
Other,
}Expand description
Classification of validation errors.
Variants§
UnknownElement
Unknown or unrecognized element
UnknownAttribute
Unknown or unrecognized attribute
MissingRequiredElement
Missing required element
MissingRequiredAttribute
Missing required attribute
InvalidAttributeValue
Invalid attribute value
InvalidContent
Invalid element content
InvalidTextContent
Invalid text content (type mismatch)
TooManyOccurrences
Element appears too many times
TooFewOccurrences
Element appears too few times
ElementOutOfOrder
Element out of order (sequence violation)
UnexpectedElement
Unexpected element in choice/sequence
NamespaceMismatch
Namespace mismatch
SchemaNotFound
Schema not found
IdentityConstraint
Identity constraint violation (unique, key, keyref)
TypeNotFound
Type definition not found
FacetViolation
Facet constraint violation
ContentModelViolation
Content model violation
UnclosedElement
Unclosed element at end of document
Other
Generic validation error
Trait Implementations§
Source§impl Clone for ValidationErrorType
impl Clone for ValidationErrorType
Source§fn clone(&self) -> ValidationErrorType
fn clone(&self) -> ValidationErrorType
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 ValidationErrorType
impl Debug for ValidationErrorType
Source§impl PartialEq for ValidationErrorType
impl PartialEq for ValidationErrorType
impl Copy for ValidationErrorType
impl Eq for ValidationErrorType
impl StructuralPartialEq for ValidationErrorType
Auto Trait Implementations§
impl Freeze for ValidationErrorType
impl RefUnwindSafe for ValidationErrorType
impl Send for ValidationErrorType
impl Sync for ValidationErrorType
impl Unpin for ValidationErrorType
impl UnwindSafe for ValidationErrorType
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.