#[non_exhaustive]pub enum TupleSerializationErrorKind {
ElementSerializationFailed {
index: usize,
err: SerializationError,
},
}
Expand description
Describes why serialize of a tuple 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.
ElementSerializationFailed
Fields
§
err: SerializationError
The error that caused the tuple field serialization to fail.
One of the tuple elements failed to serialize.
Trait Implementations§
source§impl Clone for TupleSerializationErrorKind
impl Clone for TupleSerializationErrorKind
source§fn clone(&self) -> TupleSerializationErrorKind
fn clone(&self) -> TupleSerializationErrorKind
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 TupleSerializationErrorKind
impl Debug for TupleSerializationErrorKind
source§impl From<TupleSerializationErrorKind> for BuiltinSerializationErrorKind
impl From<TupleSerializationErrorKind> for BuiltinSerializationErrorKind
source§fn from(value: TupleSerializationErrorKind) -> BuiltinSerializationErrorKind
fn from(value: TupleSerializationErrorKind) -> BuiltinSerializationErrorKind
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TupleSerializationErrorKind
impl Send for TupleSerializationErrorKind
impl Sync for TupleSerializationErrorKind
impl Unpin for TupleSerializationErrorKind
impl !UnwindSafe for TupleSerializationErrorKind
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