#[non_exhaustive]pub enum SetOrListDeserializationErrorKind {
LengthDeserializationFailed(DeserializationError),
ElementDeserializationFailed(DeserializationError),
}
Expand description
Describes why deserialization of a set or list 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.
LengthDeserializationFailed(DeserializationError)
Failed to deserialize set or list’s length.
ElementDeserializationFailed(DeserializationError)
One of the elements of the set/list failed to deserialize.
Trait Implementations§
source§impl From<SetOrListDeserializationErrorKind> for BuiltinDeserializationErrorKind
impl From<SetOrListDeserializationErrorKind> for BuiltinDeserializationErrorKind
source§fn from(
err: SetOrListDeserializationErrorKind,
) -> BuiltinDeserializationErrorKind
fn from( err: SetOrListDeserializationErrorKind, ) -> BuiltinDeserializationErrorKind
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SetOrListDeserializationErrorKind
impl !RefUnwindSafe for SetOrListDeserializationErrorKind
impl Send for SetOrListDeserializationErrorKind
impl Sync for SetOrListDeserializationErrorKind
impl Unpin for SetOrListDeserializationErrorKind
impl !UnwindSafe for SetOrListDeserializationErrorKind
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> 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