Enum Category

enum Category

Categorizes the cause of a serde_json::Error.

Variants

Io

The error was caused by a failure to read or write bytes on an I/O stream.

Syntax

The error was caused by input that was not syntactically valid JSON.

Data

The error was caused by input data that was semantically incorrect.

For example, JSON containing a number is semantically incorrect when the type being deserialized into holds a String.

Eof

The error was caused by prematurely reaching the end of the input data.

Callers that process streaming input may be interested in retrying the deserialization once more data is available.

Implementations

impl Clone for Category

fn clone(self: &Self) -> Category

impl Copy for Category

impl Debug for Category

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for Category

impl Freeze for Category

impl PartialEq for Category

fn eq(self: &Self, other: &Category) -> bool

impl RefUnwindSafe for Category

impl Send for Category

impl StructuralPartialEq for Category

impl Sync for Category

impl Unpin for Category

impl UnwindSafe for Category

impl<T> Any for Category

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Category

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Category

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Category

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Category

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Category

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Category

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Category

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Category

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>