Enum csv::DeserializeErrorKind
[−]
[src]
pub enum DeserializeErrorKind { Message(String), Unsupported(String), UnexpectedEndOfRow, InvalidUtf8(Utf8Error), ParseBool(ParseBoolError), ParseInt(ParseIntError), ParseFloat(ParseFloatError), }
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
impl Clone for DeserializeErrorKind
[src]
fn clone(&self) -> DeserializeErrorKind
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DeserializeErrorKind
[src]
impl Eq for DeserializeErrorKind
[src]
impl PartialEq for DeserializeErrorKind
[src]
fn eq(&self, __arg_0: &DeserializeErrorKind) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DeserializeErrorKind) -> bool
This method tests for !=
.