pub struct CsvWriterOptions {Show 14 fields
pub compression: i32,
pub delimiter: String,
pub has_header: bool,
pub date_format: String,
pub datetime_format: String,
pub timestamp_format: String,
pub time_format: String,
pub null_value: String,
pub quote: String,
pub escape: String,
pub double_quote: bool,
pub quote_style: i32,
pub ignore_leading_whitespace: bool,
pub ignore_trailing_whitespace: bool,
}Fields§
§compression: i32Compression type
delimiter: StringOptional column delimiter. Defaults to b','
has_header: boolWhether to write column names as file headers. Defaults to true
date_format: StringOptional date format for date arrays
datetime_format: StringOptional datetime format for datetime arrays
timestamp_format: StringOptional timestamp format for timestamp arrays
time_format: StringOptional time format for time arrays
null_value: StringOptional value to represent null
quote: StringOptional quote. Defaults to b'"'
escape: StringOptional escape. Defaults to '\\'
double_quote: boolOptional flag whether to double quotes, instead of escaping. Defaults to true
quote_style: i32Quote style for CSV writing
ignore_leading_whitespace: boolWhether to ignore leading whitespace in string values
ignore_trailing_whitespace: boolWhether to ignore trailing whitespace in string values
Implementations§
Source§impl CsvWriterOptions
impl CsvWriterOptions
Sourcepub fn compression(&self) -> CompressionTypeVariant
pub fn compression(&self) -> CompressionTypeVariant
Returns the enum value of compression, or the default if the field is set to an invalid enum value.
Sourcepub fn set_compression(&mut self, value: CompressionTypeVariant)
pub fn set_compression(&mut self, value: CompressionTypeVariant)
Sets compression to the provided enum value.
Sourcepub fn quote_style(&self) -> CsvQuoteStyle
pub fn quote_style(&self) -> CsvQuoteStyle
Returns the enum value of quote_style, or the default if the field is set to an invalid enum value.
Sourcepub fn set_quote_style(&mut self, value: CsvQuoteStyle)
pub fn set_quote_style(&mut self, value: CsvQuoteStyle)
Sets quote_style to the provided enum value.
Trait Implementations§
Source§impl Clone for CsvWriterOptions
impl Clone for CsvWriterOptions
Source§fn clone(&self) -> CsvWriterOptions
fn clone(&self) -> CsvWriterOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CsvWriterOptions
impl Debug for CsvWriterOptions
Source§impl Default for CsvWriterOptions
impl Default for CsvWriterOptions
Source§fn default() -> CsvWriterOptions
fn default() -> CsvWriterOptions
Source§impl<'de> Deserialize<'de> for CsvWriterOptions
impl<'de> Deserialize<'de> for CsvWriterOptions
Source§fn deserialize<D>(
deserializer: D,
) -> Result<CsvWriterOptions, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<CsvWriterOptions, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
impl Eq for CsvWriterOptions
Source§impl Hash for CsvWriterOptions
impl Hash for CsvWriterOptions
Source§impl Message for CsvWriterOptions
impl Message for CsvWriterOptions
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for CsvWriterOptions
impl PartialEq for CsvWriterOptions
Source§fn eq(&self, other: &CsvWriterOptions) -> bool
fn eq(&self, other: &CsvWriterOptions) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for CsvWriterOptions
impl Serialize for CsvWriterOptions
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
impl StructuralPartialEq for CsvWriterOptions
Source§impl TryFrom<&CsvWriterOptions> for CsvWriterOptions
impl TryFrom<&CsvWriterOptions> for CsvWriterOptions
Source§type Error = DataFusionError
type Error = DataFusionError
Source§fn try_from(
opts: &CsvWriterOptions,
) -> Result<CsvWriterOptions, <CsvWriterOptions as TryFrom<&CsvWriterOptions>>::Error>
fn try_from( opts: &CsvWriterOptions, ) -> Result<CsvWriterOptions, <CsvWriterOptions as TryFrom<&CsvWriterOptions>>::Error>
Auto Trait Implementations§
impl Freeze for CsvWriterOptions
impl RefUnwindSafe for CsvWriterOptions
impl Send for CsvWriterOptions
impl Sync for CsvWriterOptions
impl Unpin for CsvWriterOptions
impl UnsafeUnpin for CsvWriterOptions
impl UnwindSafe for CsvWriterOptions
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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