pub enum FormatWriteOptions {
Csv {
separator: u8,
quote_char: Option<u8>,
line_terminator: Option<String>,
quote_style: Option<String>,
null_value: Option<String>,
datetime_format: Option<String>,
date_format: Option<String>,
time_format: Option<String>,
float_precision: Option<usize>,
null_values: Option<Vec<String>>,
encoding: CsvEncoding,
},
Parquet {
compression: ParquetCompression,
},
Json {
lines: bool,
pretty: bool,
},
Avro {
compression: AvroCompression,
},
Arrow,
Excel {
worksheet_name: String,
include_header: bool,
autofit: bool,
float_precision: Option<usize>,
},
Orc {
compression: OrcCompression,
},
}Expand description
Format-specific write options
Variants§
Csv
CSV format options
Fields
§
encoding: CsvEncodingEncoding
Parquet
Parquet format options
Fields
§
compression: ParquetCompressionCompression type
Json
JSON format options
Avro
Avro format options
Fields
§
compression: AvroCompressionCompression type
Arrow
Arrow format
Excel
Excel format options
Fields
Orc
ORC format options
Fields
§
compression: OrcCompressionCompression type
Trait Implementations§
Source§impl Clone for FormatWriteOptions
impl Clone for FormatWriteOptions
Source§fn clone(&self) -> FormatWriteOptions
fn clone(&self) -> FormatWriteOptions
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FormatWriteOptions
impl Debug for FormatWriteOptions
Source§impl Default for FormatWriteOptions
impl Default for FormatWriteOptions
Source§fn default() -> FormatWriteOptions
fn default() -> FormatWriteOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FormatWriteOptions
impl RefUnwindSafe for FormatWriteOptions
impl Send for FormatWriteOptions
impl Sync for FormatWriteOptions
impl Unpin for FormatWriteOptions
impl UnwindSafe for FormatWriteOptions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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