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§
source§impl Clone for CopyLegacyOption
impl Clone for CopyLegacyOption
source§fn clone(&self) -> CopyLegacyOption
fn clone(&self) -> CopyLegacyOption
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CopyLegacyOption
impl Debug for CopyLegacyOption
source§impl Display for CopyLegacyOption
impl Display for CopyLegacyOption
source§impl Hash for CopyLegacyOption
impl Hash for CopyLegacyOption
source§impl Ord for CopyLegacyOption
impl Ord for CopyLegacyOption
source§fn cmp(&self, other: &CopyLegacyOption) -> Ordering
fn cmp(&self, other: &CopyLegacyOption) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CopyLegacyOption
impl PartialEq for CopyLegacyOption
source§fn 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 ==
.source§impl PartialOrd for CopyLegacyOption
impl PartialOrd for CopyLegacyOption
source§fn partial_cmp(&self, other: &CopyLegacyOption) -> Option<Ordering>
fn partial_cmp(&self, other: &CopyLegacyOption) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl 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§
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