Enum csv_stream::ErrorKind [−][src]
#[non_exhaustive]
pub enum ErrorKind {
UnequalLengths {
expected_len: u64,
len: u64,
},
Serialize(String),
}
Expand description
The specific type of an error.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnequalLengths
Fields
expected_len: u64
The expected number of fields in a record. This is the number of
fields in the record read prior to the record indicated by
pos
.
len: u64
The number of fields in the bad record.
This error occurs when two records with an unequal number of fields
are found. This error only occurs when the flexible
option in a
CSV reader/writer is disabled.
Serialize(String)
Tuple Fields
0: String
An error of this kind occurs only when using the Serde serializer.