Enum crates_index_diff::CrateVersionDecodeError []

pub enum CrateVersionDecodeError {
    MissingFieldError {
        object: Object,
        field: &'static str,
    },
    ObjectExpected {
        json: Json,
    },
    StringExpected {
        json: Json,
    },
    BoolExpected {
        json: Json,
    },
}

Error type to identify problems when decoding a crate version.

Variants

A field is missing in an object

Fields of MissingFieldError

An object was expected, but not obtained

Fields of ObjectExpected

A string was expected, but not obtained

Fields of StringExpected

A boolean was expected, but not obtained

Fields of BoolExpected

Trait Implementations

impl PartialOrd for CrateVersionDecodeError
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq for CrateVersionDecodeError
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for CrateVersionDecodeError
[src]

Formats the value using the given formatter.

impl Display for CrateVersionDecodeError

Formats the value using the given formatter. Read more

impl Error for CrateVersionDecodeError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more