pub enum JsonDecodeErrorKind {
EmptyInput,
InvalidJson,
UnexpectedTopLevel,
Deserialize,
}Expand description
Represents the coarse category of a lenient JSON decoding failure.
This type is intended for callers that need stable, programmatic branching without depending on full error messages produced by lower-level parsers.
Variants§
EmptyInput
Indicates that the input became empty after normalization.
InvalidJson
Indicates that the normalized text is not valid JSON syntax.
UnexpectedTopLevel
Indicates that the parsed top-level JSON kind is not the one required by the decoding method.
Deserialize
Indicates that the JSON syntax is valid but the value cannot be deserialized into the requested Rust type.
Trait Implementations§
Source§impl Clone for JsonDecodeErrorKind
impl Clone for JsonDecodeErrorKind
Source§fn clone(&self) -> JsonDecodeErrorKind
fn clone(&self) -> JsonDecodeErrorKind
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 JsonDecodeErrorKind
impl Debug for JsonDecodeErrorKind
Source§impl Display for JsonDecodeErrorKind
impl Display for JsonDecodeErrorKind
Source§impl Hash for JsonDecodeErrorKind
impl Hash for JsonDecodeErrorKind
Source§impl PartialEq for JsonDecodeErrorKind
impl PartialEq for JsonDecodeErrorKind
impl Copy for JsonDecodeErrorKind
impl Eq for JsonDecodeErrorKind
impl StructuralPartialEq for JsonDecodeErrorKind
Auto Trait Implementations§
impl Freeze for JsonDecodeErrorKind
impl RefUnwindSafe for JsonDecodeErrorKind
impl Send for JsonDecodeErrorKind
impl Sync for JsonDecodeErrorKind
impl Unpin for JsonDecodeErrorKind
impl UnsafeUnpin for JsonDecodeErrorKind
impl UnwindSafe for JsonDecodeErrorKind
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