pub struct DeserializationErrors(/* private fields */);Expand description
A collection of errors encountered while trying to deserialize a type.
Use .iter() to iterator over the underlying DeserializationError.
Implementations§
Source§impl DeserializationErrors
impl DeserializationErrors
Sourcepub fn iter(&self) -> impl ExactSizeIterator<Item = &DeserializationError>
pub fn iter(&self) -> impl ExactSizeIterator<Item = &DeserializationError>
Iterate over references to the underlying DeserializationErrors.
Use .into_iter() if you need owned DeserializationErrors
from the iterator.
Trait Implementations§
Source§impl Debug for DeserializationErrors
impl Debug for DeserializationErrors
Source§impl Display for DeserializationErrors
impl Display for DeserializationErrors
Source§impl Error for DeserializationErrors
impl Error for DeserializationErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<Vec<DeserializationError>> for DeserializationErrors
impl From<Vec<DeserializationError>> for DeserializationErrors
Source§fn from(errors: Vec<DeserializationError>) -> Self
fn from(errors: Vec<DeserializationError>) -> Self
Converts to this type from the input type.
Source§impl IntoIterator for DeserializationErrors
impl IntoIterator for DeserializationErrors
Auto Trait Implementations§
impl Freeze for DeserializationErrors
impl RefUnwindSafe for DeserializationErrors
impl Send for DeserializationErrors
impl Sync for DeserializationErrors
impl Unpin for DeserializationErrors
impl UnwindSafe for DeserializationErrors
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