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
sourceimpl Clone for DeserializeErrorKind
impl Clone for DeserializeErrorKind
sourcefn clone(&self) -> DeserializeErrorKind
fn clone(&self) -> DeserializeErrorKind
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DeserializeErrorKind
impl Debug for DeserializeErrorKind
sourceimpl Display for DeserializeErrorKind
impl Display for DeserializeErrorKind
sourceimpl PartialEq<DeserializeErrorKind> for DeserializeErrorKind
impl PartialEq<DeserializeErrorKind> for DeserializeErrorKind
sourcefn eq(&self, other: &DeserializeErrorKind) -> bool
fn eq(&self, other: &DeserializeErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DeserializeErrorKind) -> bool
fn ne(&self, other: &DeserializeErrorKind) -> bool
This method tests for !=
.
impl Eq for DeserializeErrorKind
impl StructuralEq for DeserializeErrorKind
impl StructuralPartialEq for DeserializeErrorKind
Auto Trait Implementations
impl RefUnwindSafe for DeserializeErrorKind
impl Send for DeserializeErrorKind
impl Sync for DeserializeErrorKind
impl Unpin for DeserializeErrorKind
impl UnwindSafe for DeserializeErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more