pub enum DecodeErrorKind {
}Expand description
Why a JSON document was refused.
Variants§
UnknownProperty
A property the type does not define.
MissingProperty
A required property is absent.
WrongType
The value has the wrong JSON type.
WrongCardinality
A property appears with a shape its cardinality forbids (an array for a single element or the reverse).
Empty
An object or array is empty.
BadNumber
A number is out of range or not a whole number where one is required.
BadValue
The lexical form of a primitive is invalid.
DuplicateChoice
Two forms of one choice element are both present.
ResourceType
resourceType is absent, not a string, or names another type.
UnknownElement
An XML element the type does not define.
UnexpectedText
Text where XML elements belong.
WrongRoot
An XML root element that is no resource of the version.
MalformedXml
XML the parser refuses.
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
Source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
Source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
impl Eq for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnsafeUnpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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