Enum json::Error
[−]
[src]
pub enum Error { UnexpectedCharacter { ch: char, line: usize, column: usize, }, UnexpectedEndOfJson, ExceededDepthLimit, FailedUtf8Parsing, WrongType(String), }
Error type of this crate.
Note: Since 0.9.0
using JsonError
is deprecated. Always use
json::Error
instead!
Variants
UnexpectedCharacter
Fields
ch: char | |
line: usize | |
column: usize |
UnexpectedEndOfJson
ExceededDepthLimit
FailedUtf8Parsing
WrongType(String)
Methods
impl Error
[src]
fn wrong_type(expected: &str) -> Self
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.