Enum diesel::pg::CopyHeader
source · pub enum CopyHeader {
Set(bool),
Match,
}
Available on crate feature
postgres_backend
only.Expand description
Describes the different possible settings for the HEADER
option
for COPY FROM
statements
Variants§
Set(bool)
Is the header set?
Match
Match the header with the targeted table names and fail in the case of a mismatch
Trait Implementations§
source§impl Clone for CopyHeader
impl Clone for CopyHeader
source§fn clone(&self) -> CopyHeader
fn clone(&self) -> CopyHeader
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 CopyHeader
impl Debug for CopyHeader
impl Copy for CopyHeader
Auto Trait Implementations§
impl Freeze for CopyHeader
impl RefUnwindSafe for CopyHeader
impl Send for CopyHeader
impl Sync for CopyHeader
impl Unpin for CopyHeader
impl UnwindSafe for CopyHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)