#[non_exhaustive]pub enum CodecErrorKind {
MissingAttribute,
MissingChild,
TooManyChildren,
UnknownChild,
UnknownAttribute,
InvalidValue,
UnexpectedContent,
}Expand description
Why decoding an owned value from an element failed.
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.
MissingAttribute
A required attribute is absent.
MissingChild
A required child element is absent.
TooManyChildren
A child occurs more often than the owned model can hold.
UnknownChild
A child the owned model does not represent (including extensions).
UnknownAttribute
An attribute the owned model does not represent, including a schema
attribute in the wrong namespace (e.g. an unqualified GUID).
InvalidValue
An attribute or text value is outside its lexical space.
UnexpectedContent
Element content where the schema declares simple content, or the reverse.
Trait Implementations§
Source§impl Clone for CodecErrorKind
impl Clone for CodecErrorKind
impl Copy for CodecErrorKind
Source§impl Debug for CodecErrorKind
impl Debug for CodecErrorKind
impl Eq for CodecErrorKind
Source§impl Hash for CodecErrorKind
impl Hash for CodecErrorKind
Source§impl PartialEq for CodecErrorKind
impl PartialEq for CodecErrorKind
impl StructuralPartialEq for CodecErrorKind
Auto Trait Implementations§
impl Freeze for CodecErrorKind
impl RefUnwindSafe for CodecErrorKind
impl Send for CodecErrorKind
impl Sync for CodecErrorKind
impl Unpin for CodecErrorKind
impl UnsafeUnpin for CodecErrorKind
impl UnwindSafe for CodecErrorKind
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