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
MissingFieldErrorA field is missing in an object
Fields of MissingFieldError
object: Object | |
field: &'static str |
ObjectExpectedAn object was expected, but not obtained
Fields of ObjectExpected
json: Json |
StringExpectedA string was expected, but not obtained
Fields of StringExpected
json: Json |
BoolExpectedA boolean was expected, but not obtained
Fields of BoolExpected
json: Json |
Trait Implementations
impl PartialOrd for CrateVersionDecodeError[src]
fn partial_cmp(&self, __arg_0: &CrateVersionDecodeError) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, __arg_0: &CrateVersionDecodeError) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, __arg_0: &CrateVersionDecodeError) -> bool
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, __arg_0: &CrateVersionDecodeError) -> bool
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, __arg_0: &CrateVersionDecodeError) -> bool
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]
fn eq(&self, __arg_0: &CrateVersionDecodeError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &CrateVersionDecodeError) -> bool
This method tests for !=.