Enum strason::parser::ErrorType[][src]

pub enum ErrorType {
    Other(String),
    MissingField(&'static str),
    UnknownField(String),
    ExpectedString,
    UnexpectedEOF,
    UnexpectedCharacter(char),
    MalformedNumber,
    MalformedEscape,
    UnknownIdent,
    Unicode(ParseIntError),
    UnpairedSurrogate,
    Io(Error),
}

The type of a Json parsing error

Variants

Syntax error interpreting Json

Missing field interpreting Json

Unknown field

Expected a string, got something else

end-of-file reached before json was complete

bad character encountered when parsing some data

a number contained a bad or misplaced character

an escape sequence was invalid

an identifier was given that has no meaning

a unicode codepoint constant was malformed

UTF-16 sequence with unpaired surrogate

some sort of IO error

Trait Implementations

impl Debug for ErrorType
[src]

Formats the value using the given formatter. Read more

impl From<ParseIntError> for ErrorType
[src]

Performs the conversion.

impl From<Error> for ErrorType
[src]

Performs the conversion.

impl From<ErrorType> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for ErrorType

impl Sync for ErrorType