Struct scylla_cql::types::deserialize::DeserializationError
source · pub struct DeserializationError(/* private fields */);
Expand description
An error indicating that a failure happened during deserialization.
The error is type-erased so that the crate users can define their own deserialization impls and their errors. As for the impls defined or generated by the driver itself, the following errors can be returned:
row::BuiltinDeserializationError
is returned when deserialization of one of types with an impl built into the driver fails. It is also returned from impls generated by theDeserializeRow
macro.value::BuiltinDeserializationError
is analogous to the above but is returned fromDeserializeValue::deserialize
instead both in the case of builtin impls and impls generated by theDeserializeValue
macro. It won’t be returned by theSession
directly, but it might be nested in therow::BuiltinDeserializationError
.
Implementations§
Trait Implementations§
source§impl Clone for DeserializationError
impl Clone for DeserializationError
source§fn clone(&self) -> DeserializationError
fn clone(&self) -> DeserializationError
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 DeserializationError
impl Debug for DeserializationError
source§impl Display for DeserializationError
impl Display for DeserializationError
source§impl Error for DeserializationError
impl Error for DeserializationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DeserializationError
impl !RefUnwindSafe for DeserializationError
impl Send for DeserializationError
impl Sync for DeserializationError
impl Unpin for DeserializationError
impl !UnwindSafe for DeserializationError
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
)