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§
Source§impl Clone for CopyLegacyCsvOption
impl Clone for CopyLegacyCsvOption
Source§fn clone(&self) -> CopyLegacyCsvOption
fn clone(&self) -> CopyLegacyCsvOption
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 CopyLegacyCsvOption
impl Debug for CopyLegacyCsvOption
Source§impl<'de> Deserialize<'de> for CopyLegacyCsvOption
impl<'de> Deserialize<'de> for CopyLegacyCsvOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for CopyLegacyCsvOption
impl Display for CopyLegacyCsvOption
Source§impl Hash for CopyLegacyCsvOption
impl Hash for CopyLegacyCsvOption
Source§impl Ord for CopyLegacyCsvOption
impl Ord for CopyLegacyCsvOption
Source§fn cmp(&self, other: &CopyLegacyCsvOption) -> Ordering
fn cmp(&self, other: &CopyLegacyCsvOption) -> 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 CopyLegacyCsvOption
impl PartialEq for CopyLegacyCsvOption
Source§impl PartialOrd for CopyLegacyCsvOption
impl PartialOrd for CopyLegacyCsvOption
Source§impl Serialize for CopyLegacyCsvOption
impl Serialize for CopyLegacyCsvOption
Source§impl Visit for CopyLegacyCsvOption
impl Visit for CopyLegacyCsvOption
Source§impl VisitMut for CopyLegacyCsvOption
impl VisitMut for CopyLegacyCsvOption
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
impl Eq for CopyLegacyCsvOption
impl StructuralPartialEq for CopyLegacyCsvOption
Auto Trait Implementations§
impl Freeze for CopyLegacyCsvOption
impl RefUnwindSafe for CopyLegacyCsvOption
impl Send for CopyLegacyCsvOption
impl Sync for CopyLegacyCsvOption
impl Unpin for CopyLegacyCsvOption
impl UnwindSafe for CopyLegacyCsvOption
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