Enum scylla::deserialize::value::UdtTypeCheckErrorKind
source · #[non_exhaustive]pub enum UdtTypeCheckErrorKind {
NotUdt,
ValuesMissingForUdtFields {
field_names: Vec<&'static str>,
},
FieldNameMismatch {
position: usize,
rust_field_name: String,
db_field_name: String,
},
ExcessFieldInUdt {
db_field_name: String,
},
DuplicatedField {
field_name: String,
},
TooFewFields {
required_fields: Vec<&'static str>,
present_fields: Vec<String>,
},
FieldTypeCheckFailed {
field_name: String,
err: TypeCheckError,
},
}
Expand description
Describes why type checking of a user defined 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.
NotUdt
The CQL type is not a user defined type.
ValuesMissingForUdtFields
The CQL UDT type does not have some fields that is required in the Rust struct.
Fields
FieldNameMismatch
A different field name was expected at given position.
Fields
ExcessFieldInUdt
UDT contains an excess field, which does not correspond to any Rust struct’s field.
DuplicatedField
Duplicated field in serialized data.
TooFewFields
Fewer fields present in the UDT than required by the Rust type.
FieldTypeCheckFailed
Type check failed between UDT and Rust type field.
Fields
§
err: TypeCheckError
Inner type check error that occurred.
Trait Implementations§
source§impl Clone for UdtTypeCheckErrorKind
impl Clone for UdtTypeCheckErrorKind
source§fn clone(&self) -> UdtTypeCheckErrorKind
fn clone(&self) -> UdtTypeCheckErrorKind
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 UdtTypeCheckErrorKind
impl Debug for UdtTypeCheckErrorKind
source§impl Display for UdtTypeCheckErrorKind
impl Display for UdtTypeCheckErrorKind
source§impl From<UdtTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
impl From<UdtTypeCheckErrorKind> for BuiltinTypeCheckErrorKind
source§fn from(value: UdtTypeCheckErrorKind) -> BuiltinTypeCheckErrorKind
fn from(value: UdtTypeCheckErrorKind) -> BuiltinTypeCheckErrorKind
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UdtTypeCheckErrorKind
impl !RefUnwindSafe for UdtTypeCheckErrorKind
impl Send for UdtTypeCheckErrorKind
impl Sync for UdtTypeCheckErrorKind
impl Unpin for UdtTypeCheckErrorKind
impl !UnwindSafe for UdtTypeCheckErrorKind
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
)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>
Converts
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>
Converts
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