Enum scylla_cql::types::serialize::row::BuiltinTypeCheckErrorKind
source · #[non_exhaustive]pub enum BuiltinTypeCheckErrorKind {
WrongColumnCount {
rust_cols: usize,
cql_cols: usize,
},
NoColumnWithName {
name: String,
},
ValueMissingForColumn {
name: String,
},
ColumnNameMismatch {
rust_column_name: String,
db_column_name: String,
},
}
Expand description
Describes why type checking values for a statement 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 provides rust_cols
columns, but the statement operates on cql_cols
.
Fields
NoColumnWithName
The Rust type provides a value for some column, but that column is not present in the statement.
ValueMissingForColumn
A value required by the statement is not provided by the Rust type.
ColumnNameMismatch
A different column name was expected at given position.
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
)