Enum json::JsonError [] [src]

pub enum JsonError {
    UnexpectedToken(String),
    UnexpectedEndOfJson,
    WrongType(String),
    UndefinedField(String),
}

Variants

UnexpectedToken(String)UnexpectedEndOfJsonWrongType(String)UndefinedField(String)

Methods

impl JsonError
[src]

fn unexpected_token(token: Token) -> Self

fn wrong_type(expected: &str) -> Self

fn undefined(field: &str) -> Self

Trait Implementations

impl Debug for JsonError
[src]

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

Formats the value using the given formatter.