Enum csv::DeserializeErrorKind
source · 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)