Enum sqlparser::ast::CopyLegacyOption
source · [−]pub enum CopyLegacyOption {
Binary,
Delimiter(char),
Null(String),
Csv(Vec<CopyLegacyCsvOption>),
}
Expand description
An option in COPY
statement before PostgreSQL version 9.0.
Variants
Binary
BINARY
Delimiter(char)
DELIMITER [ AS ] ‘delimiter_character’
Null(String)
NULL [ AS ] ‘null_string’
Csv(Vec<CopyLegacyCsvOption>)
CSV …
Trait Implementations
sourceimpl Clone for CopyLegacyOption
impl Clone for CopyLegacyOption
sourcefn clone(&self) -> CopyLegacyOption
fn clone(&self) -> CopyLegacyOption
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 CopyLegacyOption
impl Debug for CopyLegacyOption
sourceimpl Display for CopyLegacyOption
impl Display for CopyLegacyOption
sourceimpl Hash for CopyLegacyOption
impl Hash for CopyLegacyOption
sourceimpl PartialEq<CopyLegacyOption> for CopyLegacyOption
impl PartialEq<CopyLegacyOption> for CopyLegacyOption
sourcefn eq(&self, other: &CopyLegacyOption) -> bool
fn eq(&self, other: &CopyLegacyOption) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CopyLegacyOption) -> bool
fn ne(&self, other: &CopyLegacyOption) -> bool
This method tests for !=
.
impl Eq for CopyLegacyOption
impl StructuralEq for CopyLegacyOption
impl StructuralPartialEq for CopyLegacyOption
Auto Trait Implementations
impl RefUnwindSafe for CopyLegacyOption
impl Send for CopyLegacyOption
impl Sync for CopyLegacyOption
impl Unpin for CopyLegacyOption
impl UnwindSafe for CopyLegacyOption
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