#[non_exhaustive]pub enum BuiltinDeserializationErrorKind {
Show 15 variants
BadDate {
date_field: &'static str,
err: LowLevelDeserializationError,
},
BadDecimalScale(LowLevelDeserializationError),
RawCqlBytesReadError(LowLevelDeserializationError),
ExpectedNonNull,
ByteLengthMismatch {
expected: usize,
got: usize,
},
ExpectedAscii,
InvalidUtf8(Utf8Error),
ValueOverflow,
BadInetLength {
got: usize,
},
SetOrListError(SetOrListDeserializationErrorKind),
VectorError(VectorDeserializationErrorKind),
MapError(MapDeserializationErrorKind),
TupleError(TupleDeserializationErrorKind),
UdtError(UdtDeserializationErrorKind),
Unsupported,
}
Expand description
Describes why deserialization of some of the built-in types failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadDate
Failed to deserialize one of date’s fields.
BadDecimalScale(LowLevelDeserializationError)
Failed to deserialize decimal’s scale.
RawCqlBytesReadError(LowLevelDeserializationError)
Failed to deserialize raw bytes of cql value.
ExpectedNonNull
Expected non-null value, got null.
ByteLengthMismatch
The length of read value in bytes is different than expected for the Rust type.
ExpectedAscii
Expected valid ASCII string.
InvalidUtf8(Utf8Error)
Invalid UTF-8 string.
ValueOverflow
The read value is out of range supported by the Rust type.
BadInetLength
The length of read value in bytes is not suitable for IP address.
SetOrListError(SetOrListDeserializationErrorKind)
A deserialization failure specific to a CQL set or list.
VectorError(VectorDeserializationErrorKind)
A deserialization failure specific to a CQL vector.
MapError(MapDeserializationErrorKind)
A deserialization failure specific to a CQL map.
TupleError(TupleDeserializationErrorKind)
A deserialization failure specific to a CQL tuple.
UdtError(UdtDeserializationErrorKind)
A deserialization failure specific to a CQL UDT.
Unsupported
Deserialization of this CQL type is not supported by the driver.
Trait Implementations§
Source§impl Clone for BuiltinDeserializationErrorKind
impl Clone for BuiltinDeserializationErrorKind
Source§fn clone(&self) -> BuiltinDeserializationErrorKind
fn clone(&self) -> BuiltinDeserializationErrorKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl From<MapDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<MapDeserializationErrorKind> for BuiltinDeserializationErrorKind
Source§fn from(err: MapDeserializationErrorKind) -> BuiltinDeserializationErrorKind
fn from(err: MapDeserializationErrorKind) -> BuiltinDeserializationErrorKind
Source§impl From<SetOrListDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<SetOrListDeserializationErrorKind> for BuiltinDeserializationErrorKind
Source§fn from(
err: SetOrListDeserializationErrorKind,
) -> BuiltinDeserializationErrorKind
fn from( err: SetOrListDeserializationErrorKind, ) -> BuiltinDeserializationErrorKind
Source§impl From<TupleDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<TupleDeserializationErrorKind> for BuiltinDeserializationErrorKind
Source§fn from(err: TupleDeserializationErrorKind) -> BuiltinDeserializationErrorKind
fn from(err: TupleDeserializationErrorKind) -> BuiltinDeserializationErrorKind
Source§impl From<UdtDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<UdtDeserializationErrorKind> for BuiltinDeserializationErrorKind
Source§fn from(err: UdtDeserializationErrorKind) -> BuiltinDeserializationErrorKind
fn from(err: UdtDeserializationErrorKind) -> BuiltinDeserializationErrorKind
Source§impl From<VectorDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<VectorDeserializationErrorKind> for BuiltinDeserializationErrorKind
Source§fn from(err: VectorDeserializationErrorKind) -> BuiltinDeserializationErrorKind
fn from(err: VectorDeserializationErrorKind) -> BuiltinDeserializationErrorKind
Auto Trait Implementations§
impl Freeze for BuiltinDeserializationErrorKind
impl !RefUnwindSafe for BuiltinDeserializationErrorKind
impl Send for BuiltinDeserializationErrorKind
impl Sync for BuiltinDeserializationErrorKind
impl Unpin for BuiltinDeserializationErrorKind
impl !UnwindSafe for BuiltinDeserializationErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more