Enum bson::ordered::ValueAccessError
[−]
[src]
pub enum ValueAccessError { NotPresent, UnexpectedType, }
Error to indicate that either a value was empty or it contained an unexpected type, for use with the direct getters.
Variants
NotPresent
Cannot find the expected field with the specified key
UnexpectedType
Found a Bson value with the specified key, but not with the expected type
Trait Implementations
impl PartialEq for ValueAccessError
[src]
fn eq(&self, __arg_0: &ValueAccessError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.