Enum sqlparser::ast::CopyLegacyCsvOption
source · [−]pub enum CopyLegacyCsvOption {
Header,
Quote(char),
Escape(char),
ForceQuote(Vec<Ident>),
ForceNotNull(Vec<Ident>),
}
Expand description
A CSV
option in COPY
statement before PostgreSQL version 9.0.
Variants
Header
HEADER
Quote(char)
QUOTE [ AS ] ‘quote_character’
Escape(char)
ESCAPE [ AS ] ‘escape_character’
ForceQuote(Vec<Ident>)
FORCE QUOTE { column_name [, …] | * }
ForceNotNull(Vec<Ident>)
FORCE NOT NULL column_name [, …]
Trait Implementations
sourceimpl Clone for CopyLegacyCsvOption
impl Clone for CopyLegacyCsvOption
sourcefn clone(&self) -> CopyLegacyCsvOption
fn clone(&self) -> CopyLegacyCsvOption
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CopyLegacyCsvOption
impl Debug for CopyLegacyCsvOption
sourceimpl Display for CopyLegacyCsvOption
impl Display for CopyLegacyCsvOption
sourceimpl Hash for CopyLegacyCsvOption
impl Hash for CopyLegacyCsvOption
sourceimpl PartialEq<CopyLegacyCsvOption> for CopyLegacyCsvOption
impl PartialEq<CopyLegacyCsvOption> for CopyLegacyCsvOption
sourcefn eq(&self, other: &CopyLegacyCsvOption) -> bool
fn eq(&self, other: &CopyLegacyCsvOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CopyLegacyCsvOption) -> bool
fn ne(&self, other: &CopyLegacyCsvOption) -> bool
This method tests for !=
.
impl Eq for CopyLegacyCsvOption
impl StructuralEq for CopyLegacyCsvOption
impl StructuralPartialEq for CopyLegacyCsvOption
Auto Trait Implementations
impl RefUnwindSafe for CopyLegacyCsvOption
impl Send for CopyLegacyCsvOption
impl Sync for CopyLegacyCsvOption
impl Unpin for CopyLegacyCsvOption
impl UnwindSafe for CopyLegacyCsvOption
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more