pub struct CopyFromOptions {Show 19 fields
pub delimiter: char,
pub quote: char,
pub escape: char,
pub header: bool,
pub null_val: String,
pub datetime_format: Option<String>,
pub encoding: String,
pub chunk_size: usize,
pub max_batch_size: usize,
pub min_batch_size: usize,
pub prepared_statements: bool,
pub ttl: Option<u64>,
pub max_attempts: usize,
pub max_parse_errors: Option<usize>,
pub max_insert_errors: Option<usize>,
pub err_file: Option<PathBuf>,
pub report_frequency: Option<usize>,
pub ingest_rate: Option<usize>,
pub num_processes: usize,
}Expand description
Options specific to COPY FROM (CSV import).
Fields§
§delimiter: char§quote: char§escape: char§header: bool§null_val: String§datetime_format: Option<String>§encoding: String§chunk_size: usize§max_batch_size: usize§min_batch_size: usize§prepared_statements: bool§ttl: Option<u64>§max_attempts: usize§max_parse_errors: Option<usize>§max_insert_errors: Option<usize>§err_file: Option<PathBuf>§report_frequency: Option<usize>§ingest_rate: Option<usize>§num_processes: usizeTrait Implementations§
Source§impl Clone for CopyFromOptions
impl Clone for CopyFromOptions
Source§fn clone(&self) -> CopyFromOptions
fn clone(&self) -> CopyFromOptions
Returns a duplicate 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 CopyFromOptions
impl Debug for CopyFromOptions
Auto Trait Implementations§
impl Freeze for CopyFromOptions
impl RefUnwindSafe for CopyFromOptions
impl Send for CopyFromOptions
impl Sync for CopyFromOptions
impl Unpin for CopyFromOptions
impl UnwindSafe for CopyFromOptions
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more