pub enum ValidationErrorKind {
UnexpectedElement(ExpandedName),
UnexpectedText,
UnexpectedAttribute(ExpandedName),
InvalidAttributeValue(ExpandedName, String),
MissingContent,
}Expand description
What kind of problem a ValidationError describes.
Variants§
UnexpectedElement(ExpandedName)
An element with this name isn’t allowed at this position.
UnexpectedText
A text child isn’t allowed at this position (and isn’t part of a
data/value/list that could accept it).
UnexpectedAttribute(ExpandedName)
This attribute name isn’t allowed on this element at all.
InvalidAttributeValue(ExpandedName, String)
This attribute is allowed on this element, but its value doesn’t match what the schema requires.
MissingContent
The element ended while the schema still required more content (a missing child element, missing text, or a missing attribute).
Trait Implementations§
Source§impl Clone for ValidationErrorKind
impl Clone for ValidationErrorKind
Source§impl Debug for ValidationErrorKind
impl Debug for ValidationErrorKind
Source§impl Display for ValidationErrorKind
impl Display for ValidationErrorKind
impl Eq for ValidationErrorKind
Source§impl PartialEq for ValidationErrorKind
impl PartialEq for ValidationErrorKind
impl StructuralPartialEq for ValidationErrorKind
Auto Trait Implementations§
impl Freeze for ValidationErrorKind
impl RefUnwindSafe for ValidationErrorKind
impl Send for ValidationErrorKind
impl Sync for ValidationErrorKind
impl Unpin for ValidationErrorKind
impl UnsafeUnpin for ValidationErrorKind
impl UnwindSafe for ValidationErrorKind
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