#[non_exhaustive]pub enum BuiltinTypeCheckErrorKind {
MismatchedType {
expected: &'static [ColumnType<'static>],
},
SetOrListError(SetOrListTypeCheckErrorKind),
MapError(MapTypeCheckErrorKind),
TupleError(TupleTypeCheckErrorKind),
UdtError(UdtTypeCheckErrorKind),
}
Expand description
Describes why type checking some of the built-in types 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.
MismatchedType
Expected one from a list of particular types.
Fields
§
expected: &'static [ColumnType<'static>]
The list of types that the Rust type can deserialize from.
SetOrListError(SetOrListTypeCheckErrorKind)
A type check failure specific to a CQL set or list.
MapError(MapTypeCheckErrorKind)
A type check failure specific to a CQL map.
TupleError(TupleTypeCheckErrorKind)
A type check failure specific to a CQL tuple.
UdtError(UdtTypeCheckErrorKind)
A type check failure specific to a CQL UDT.
Trait Implementations§
source§impl Clone for BuiltinTypeCheckErrorKind
impl Clone for BuiltinTypeCheckErrorKind
source§fn clone(&self) -> BuiltinTypeCheckErrorKind
fn clone(&self) -> BuiltinTypeCheckErrorKind
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 BuiltinTypeCheckErrorKind
impl Debug for BuiltinTypeCheckErrorKind
source§impl Display for BuiltinTypeCheckErrorKind
impl Display for BuiltinTypeCheckErrorKind
source§impl From<MapTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
impl From<MapTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
source§fn from(value: MapTypeCheckErrorKind) -> Self
fn from(value: MapTypeCheckErrorKind) -> Self
Converts to this type from the input type.
source§impl From<SetOrListTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
impl From<SetOrListTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
source§fn from(value: SetOrListTypeCheckErrorKind) -> Self
fn from(value: SetOrListTypeCheckErrorKind) -> Self
Converts to this type from the input type.
source§impl From<TupleTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
impl From<TupleTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
source§fn from(value: TupleTypeCheckErrorKind) -> Self
fn from(value: TupleTypeCheckErrorKind) -> Self
Converts to this type from the input type.
source§impl From<UdtTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
impl From<UdtTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
source§fn from(value: UdtTypeCheckErrorKind) -> Self
fn from(value: UdtTypeCheckErrorKind) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuiltinTypeCheckErrorKind
impl !RefUnwindSafe for BuiltinTypeCheckErrorKind
impl Send for BuiltinTypeCheckErrorKind
impl Sync for BuiltinTypeCheckErrorKind
impl Unpin for BuiltinTypeCheckErrorKind
impl !UnwindSafe for BuiltinTypeCheckErrorKind
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
)