Enum csv::DeserializeErrorKind [−][src]
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.
Tuple Fields of Message
0: String
Unsupported(String)
A generic Serde unsupported error.
Tuple Fields of Unsupported
0: String
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).
Tuple Fields of InvalidUtf8
0: Utf8Error
ParseBool(ParseBoolError)
This error occurs when a boolean value fails to parse.
Tuple Fields of ParseBool
ParseInt(ParseIntError)
This error occurs when an integer value fails to parse.
Tuple Fields of ParseInt
ParseFloat(ParseFloatError)
This error occurs when a float value fails to parse.
Tuple Fields of ParseFloat
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more