Enum bson::document::ValueAccessError [−][src]
#[non_exhaustive] pub enum ValueAccessError { NotPresent, UnexpectedType, }
Expand description
Error to indicate that either a value was empty or it contained an unexpected type, for use with the direct getters.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Cannot find the expected field with the specified key
Found a Bson value with the specified key, but not with the expected type
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ValueAccessError
impl Send for ValueAccessError
impl Sync for ValueAccessError
impl Unpin for ValueAccessError
impl UnwindSafe for ValueAccessError
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V