#[non_exhaustive]pub enum ImportRefusal {
NoFile,
Encoding,
Unterminated,
NoHeader,
NoRows,
TooManyRows,
TooManyCells,
UnknownColumn,
AmbiguousColumn,
RepeatedColumn,
}Expand description
Why an import refused a whole file, as its alert’s data-import-refusal names it.
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.
NoFile
The submission carries no file.
Encoding
The file is not UTF-8 text.
Unterminated
A quoted cell is never closed.
NoHeader
The file holds no header row.
NoRows
The file holds a header but no row.
TooManyRows
The file holds more rows than one import creates.
TooManyCells
A row of the file holds more cells than one import reads.
UnknownColumn
The header names a column no field the request may change takes.
AmbiguousColumn
The header names a column by a label more than one field carries.
RepeatedColumn
The header names a single-value column twice.
Trait Implementations§
Source§impl Clone for ImportRefusal
impl Clone for ImportRefusal
impl Copy for ImportRefusal
Source§impl Debug for ImportRefusal
impl Debug for ImportRefusal
impl Eq for ImportRefusal
Source§impl PartialEq for ImportRefusal
impl PartialEq for ImportRefusal
impl StructuralPartialEq for ImportRefusal
Auto Trait Implementations§
impl Forget for ImportRefusal
impl Freeze for ImportRefusal
impl Move for ImportRefusal
impl RefUnwindSafe for ImportRefusal
impl Send for ImportRefusal
impl Sync for ImportRefusal
impl Unpin for ImportRefusal
impl UnsafeUnpin for ImportRefusal
impl UnwindSafe for ImportRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.