pub enum DecodeErrorKind {
Syntax {
at: usize,
},
Missing,
Unknown,
Duplicate,
Mismatch,
TooLarge,
}Expand description
Which refusal decoding made: the cases of json.Problem (stdlib.md).
Variants§
Syntax
The text is not JSON; at is the byte offset where it stops being.
Missing
A required field is absent.
Unknown
A field or a constructor the type does not have.
Duplicate
One key twice in a JSON object, or two equal keys of a Dict or
elements of a Set.
Mismatch
A value of the wrong kind or form for its type.
TooLarge
A value past a bound of the host’s limits.
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
Source§fn clone(&self) -> DecodeErrorKind
fn clone(&self) -> DecodeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeErrorKind
Source§impl Debug for DecodeErrorKind
impl Debug for DecodeErrorKind
impl Eq for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Forget for DecodeErrorKind
impl Freeze for DecodeErrorKind
impl Move 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