Enum serde::json::error::ErrorCode [] [src]

pub enum ErrorCode {
    EOFWhileParsingList,
    EOFWhileParsingObject,
    EOFWhileParsingString,
    EOFWhileParsingValue,
    ExpectedColon,
    ExpectedConversion,
    ExpectedEnumEnd,
    ExpectedEnumEndToken,
    ExpectedEnumMapStart,
    ExpectedEnumToken,
    ExpectedEnumVariantString,
    ExpectedListCommaOrEnd,
    ExpectedName,
    ExpectedObjectCommaOrEnd,
    ExpectedSomeIdent,
    ExpectedSomeValue,
    InvalidEscape,
    InvalidNumber,
    InvalidUnicodeCodePoint,
    KeyMustBeAString,
    LoneLeadingSurrogateInHexEscape,
    UnknownField(String),
    MissingField(&'static str),
    NotFourDigit,
    NotUtf8,
    TrailingCharacters,
    UnexpectedEndOfHexEscape,
    UnknownVariant,
    UnrecognizedHex,
}

The errors that can arise while parsing a JSON stream.

Variants

EOFWhileParsingList
EOFWhileParsingObject
EOFWhileParsingString
EOFWhileParsingValue
ExpectedColon
ExpectedConversion
ExpectedEnumEnd
ExpectedEnumEndToken
ExpectedEnumMapStart
ExpectedEnumToken
ExpectedEnumVariantString
ExpectedListCommaOrEnd
ExpectedName
ExpectedObjectCommaOrEnd
ExpectedSomeIdent
ExpectedSomeValue
InvalidEscape
InvalidNumber
InvalidUnicodeCodePoint
KeyMustBeAString
LoneLeadingSurrogateInHexEscape
UnknownField
MissingField
NotFourDigit
NotUtf8
TrailingCharacters
UnexpectedEndOfHexEscape
UnknownVariant
UnrecognizedHex

Trait Implementations

impl Debug for ErrorCode

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl PartialEq for ErrorCode

fn eq(&self, __arg_0: &ErrorCode) -> bool

fn ne(&self, __arg_0: &ErrorCode) -> bool

impl Clone for ErrorCode

fn clone(&self) -> ErrorCode

fn clone_from(&mut self, source: &Self)