Enum scylla_cql::types::serialize::value::MapSerializationErrorKind
source · #[non_exhaustive]pub enum MapSerializationErrorKind {
TooManyElements,
KeySerializationFailed(SerializationError),
ValueSerializationFailed(SerializationError),
}
Expand description
Describes why serialization 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.
TooManyElements
The many contains too many items, exceeding the protocol limit (i32::MAX).
KeySerializationFailed(SerializationError)
One of the keys in the map failed to serialize.
ValueSerializationFailed(SerializationError)
One of the values in the map failed to serialize.
Trait Implementations§
source§impl Clone for MapSerializationErrorKind
impl Clone for MapSerializationErrorKind
source§fn clone(&self) -> MapSerializationErrorKind
fn clone(&self) -> MapSerializationErrorKind
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MapSerializationErrorKind
impl Debug for MapSerializationErrorKind
source§impl Display for MapSerializationErrorKind
impl Display for MapSerializationErrorKind
source§impl From<MapSerializationErrorKind> for BuiltinSerializationErrorKind
impl From<MapSerializationErrorKind> for BuiltinSerializationErrorKind
source§fn from(value: MapSerializationErrorKind) -> Self
fn from(value: MapSerializationErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapSerializationErrorKind
impl !RefUnwindSafe for MapSerializationErrorKind
impl Send for MapSerializationErrorKind
impl Sync for MapSerializationErrorKind
impl Unpin for MapSerializationErrorKind
impl !UnwindSafe for MapSerializationErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)