#[non_exhaustive]pub enum CsvDecodeErrorKind {
FieldCount,
Field,
HeaderMismatch,
}Expand description
The kind of a typed-CSV decoding error.
#[non_exhaustive]: new kinds may be added in a future release.
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.
FieldCount
A record had a different number of fields than the target expected.
Field
A field could not be parsed into the target type.
HeaderMismatch
The header row did not match the target’s header.
Trait Implementations§
Source§impl Clone for CsvDecodeErrorKind
impl Clone for CsvDecodeErrorKind
Source§fn clone(&self) -> CsvDecodeErrorKind
fn clone(&self) -> CsvDecodeErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CsvDecodeErrorKind
Source§impl Debug for CsvDecodeErrorKind
impl Debug for CsvDecodeErrorKind
impl Eq for CsvDecodeErrorKind
Source§impl PartialEq for CsvDecodeErrorKind
impl PartialEq for CsvDecodeErrorKind
Source§fn eq(&self, other: &CsvDecodeErrorKind) -> bool
fn eq(&self, other: &CsvDecodeErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CsvDecodeErrorKind
Auto Trait Implementations§
impl Freeze for CsvDecodeErrorKind
impl RefUnwindSafe for CsvDecodeErrorKind
impl Send for CsvDecodeErrorKind
impl Sync for CsvDecodeErrorKind
impl Unpin for CsvDecodeErrorKind
impl UnsafeUnpin for CsvDecodeErrorKind
impl UnwindSafe for CsvDecodeErrorKind
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