pub enum DeserializeErrorKind {
Message(String),
Unsupported(String),
UnexpectedEndOfRow,
InvalidUtf8(Utf8Error),
ParseBool(ParseBoolError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
}
Expand description
The type of a Serde deserialization error.
Variants§
Message(String)
A generic Serde deserialization error.
Unsupported(String)
A generic Serde unsupported error.
UnexpectedEndOfRow
This error occurs when a Rust type expects to decode another field from a row, but no more fields exist.
InvalidUtf8(Utf8Error)
This error occurs when UTF-8 validation on a field fails. UTF-8
validation is only performed when the Rust type requires it (e.g.,
a String
or &str
type).
ParseBool(ParseBoolError)
This error occurs when a boolean value fails to parse.
ParseInt(ParseIntError)
This error occurs when an integer value fails to parse.
ParseFloat(ParseFloatError)
This error occurs when a float value fails to parse.
Trait Implementations§
Source§impl Clone for DeserializeErrorKind
impl Clone for DeserializeErrorKind
Source§fn clone(&self) -> DeserializeErrorKind
fn clone(&self) -> DeserializeErrorKind
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 DeserializeErrorKind
impl Debug for DeserializeErrorKind
Source§impl Display for DeserializeErrorKind
impl Display for DeserializeErrorKind
Source§impl PartialEq for DeserializeErrorKind
impl PartialEq for DeserializeErrorKind
impl Eq for DeserializeErrorKind
impl StructuralPartialEq for DeserializeErrorKind
Auto Trait Implementations§
impl Freeze for DeserializeErrorKind
impl RefUnwindSafe for DeserializeErrorKind
impl Send for DeserializeErrorKind
impl Sync for DeserializeErrorKind
impl Unpin for DeserializeErrorKind
impl UnwindSafe for DeserializeErrorKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)