Enum scylla::serialize::value::UdtTypeCheckErrorKind
source · #[non_exhaustive]pub enum UdtTypeCheckErrorKind {
NotUdt,
NameMismatch {
keyspace: String,
type_name: String,
},
ValueMissingForUdtField {
field_name: String,
},
NoSuchFieldInUdt {
field_name: String,
},
FieldNameMismatch {
rust_field_name: String,
db_field_name: String,
},
}
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.
NameMismatch
The name of the UDT being serialized to does not match.
ValueMissingForUdtField
The Rust data does not have a field that is required in the CQL UDT type.
NoSuchFieldInUdt
The Rust data contains a field that is not present in the UDT.
FieldNameMismatch
A different field name was expected at given position.
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