Enum foxbox_taxonomy::parse::ParseError [] [src]

pub enum ParseError {
    JSON(JSONError),
    MissingField {
        name: String,
        at: String,
    },
    UnknownFields {
        names: Vec<String>,
        at: String,
    },
    TypeError {
        name: String,
        at: String,
        expected: String,
    },
    EmptyObject {
        at: String,
    },
    UnknownConstant {
        at: String,
        constant: String,
    },
}

An error during parsing.

Variants

JSON
MissingField

Fields

name
at
UnknownFields

Fields

names
at
TypeError

Fields

name
at
expected
EmptyObject

Fields

at
UnknownConstant

Fields

at
constant

Methods

impl ParseError

fn missing_field(name: &str, at: &Path) -> Self

fn type_error(name: &str, at: &Path, expected: &str) -> Self

fn unknown_fields(names: Vec<String>, at: &Path) -> Self

fn unknown_constant(value: &str, at: &Path) -> Self

fn empty_object(at: &Path) -> Self

fn json(error: Error) -> Self

Trait Implementations

impl Display for ParseError

fn fmt(&self, formatter: &mut Formatter) -> Result<(), FmtError>

impl StdError for ParseError

fn description(&self) -> &str

1.0.0fn cause(&self) -> Option<&Error>

Derived Implementations

impl Debug for ParseError

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