#[non_exhaustive]pub enum MapDeserializationErrorKind {
LengthDeserializationFailed(DeserializationError),
KeyDeserializationFailed(DeserializationError),
ValueDeserializationFailed(DeserializationError),
}
Expand description
Describes why deserialization of a map type failed.
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.
LengthDeserializationFailed(DeserializationError)
Failed to deserialize map’s length.
KeyDeserializationFailed(DeserializationError)
One of the keys in the map failed to deserialize.
ValueDeserializationFailed(DeserializationError)
One of the values in the map failed to deserialize.
Trait Implementations§
source§impl Debug for MapDeserializationErrorKind
impl Debug for MapDeserializationErrorKind
source§impl From<MapDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<MapDeserializationErrorKind> for BuiltinDeserializationErrorKind
source§fn from(err: MapDeserializationErrorKind) -> Self
fn from(err: MapDeserializationErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapDeserializationErrorKind
impl !RefUnwindSafe for MapDeserializationErrorKind
impl Send for MapDeserializationErrorKind
impl Sync for MapDeserializationErrorKind
impl Unpin for MapDeserializationErrorKind
impl !UnwindSafe for MapDeserializationErrorKind
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more