Struct strason::parser::Error
[−]
[src]
pub struct Error { // some fields omitted }
A Json parsing error
Trait Implementations
impl Debug for Error
[src]
impl From<ErrorType> for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
fn description(&self) -> &str
A short description of the error. Read more
impl Error for Error
[src]
fn syntax(s: &str) -> Error
Raised when there is general error when deserializing a type.
fn end_of_stream() -> Error
Raised when a Deserialize
type unexpectedly hit the end of the stream.
fn unknown_field(s: &str) -> Error
Raised when a Deserialize
struct type received an unexpected struct field.
fn missing_field(s: &'static str) -> Error
Raised when a Deserialize
struct type did not receive a field.
fn length_mismatch(_len: usize) -> Self
Raised when a fixed sized sequence or map was passed in the wrong amount of arguments.
fn type_mismatch(_type: Type) -> Self
Raised when a Deserialize
was passed an incorrect type.
fn invalid_value(msg: &str) -> Self
Raised when a Deserialize
was passed an incorrect value.