pub struct SerializeError<T> {
pub remaining: Vec<T>,
pub failed: T,
pub cause: SerializeErrorCause,
}
Expand description
An error and remaining item to serialize if a serialization failure occurs while serializing multiple items.
Fields§
§remaining: Vec<T>
§failed: T
§cause: SerializeErrorCause
Trait Implementations§
Source§impl<T: Debug> Debug for SerializeError<T>
impl<T: Debug> Debug for SerializeError<T>
Source§impl<T: Debug> Display for SerializeError<T>
impl<T: Debug> Display for SerializeError<T>
Source§impl<T: Debug> Error for SerializeError<T>
impl<T: Debug> Error for SerializeError<T>
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()
Auto Trait Implementations§
impl<T> Freeze for SerializeError<T>where
T: Freeze,
impl<T> !RefUnwindSafe for SerializeError<T>
impl<T> Send for SerializeError<T>where
T: Send,
impl<T> Sync for SerializeError<T>where
T: Sync,
impl<T> Unpin for SerializeError<T>where
T: Unpin,
impl<T> !UnwindSafe for SerializeError<T>
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