Enum scylla_cql::types::deserialize::row::BuiltinTypeCheckErrorKind
source · #[non_exhaustive]pub enum BuiltinTypeCheckErrorKind {
WrongColumnCount {
rust_cols: usize,
cql_cols: usize,
},
ColumnWithUnknownName {
column_index: usize,
column_name: String,
},
ValuesMissingForColumns {
column_names: Vec<&'static str>,
},
ColumnNameMismatch {
field_index: usize,
column_index: usize,
rust_column_name: &'static str,
db_column_name: String,
},
ColumnTypeCheckFailed {
column_index: usize,
column_name: String,
err: TypeCheckError,
},
DuplicatedColumn {
column_index: usize,
column_name: &'static str,
},
}
Expand description
Describes why type checking incoming result column types again given Rust 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.
WrongColumnCount
The Rust type expects rust_cols
columns, but the statement operates on cql_cols
.
Fields
ColumnWithUnknownName
The CQL row contains a column for which a corresponding field is not found in the Rust type.
Fields
ValuesMissingForColumns
Several values required by the Rust type are not provided by the DB.
Fields
ColumnNameMismatch
A different column name was expected at given position.
Fields
ColumnTypeCheckFailed
Column type check failed between Rust type and DB type at given position (=in given column).
Fields
§
err: TypeCheckError
Inner type check error due to the type mismatch.
DuplicatedColumn
Duplicated column in DB metadata.
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
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
)