pub struct CsvOptions {Show 17 fields
pub has_header: Vec<u8>,
pub delimiter: Vec<u8>,
pub quote: Vec<u8>,
pub escape: Vec<u8>,
pub compression: i32,
pub schema_infer_max_rec: Option<u64>,
pub date_format: String,
pub datetime_format: String,
pub timestamp_format: String,
pub timestamp_tz_format: String,
pub time_format: String,
pub null_value: String,
pub null_regex: String,
pub comment: Vec<u8>,
pub double_quote: Vec<u8>,
pub newlines_in_values: Vec<u8>,
pub terminator: Vec<u8>,
}Expand description
Options controlling CSV format
Fields§
§has_header: Vec<u8>Indicates if the CSV has a header row
delimiter: Vec<u8>Delimiter character as a byte
quote: Vec<u8>Quote character as a byte
escape: Vec<u8>Optional escape character as a byte
compression: i32Compression type
schema_infer_max_rec: Option<u64>Optional max records for schema inference
date_format: StringOptional date format
datetime_format: StringOptional datetime format
timestamp_format: StringOptional timestamp format
timestamp_tz_format: StringOptional timestamp with timezone format
time_format: StringOptional time format
null_value: StringOptional representation of null value
null_regex: StringOptional representation of null loading regex
comment: Vec<u8>Optional comment character as a byte
double_quote: Vec<u8>Indicates if quotes are doubled
newlines_in_values: Vec<u8>Indicates if newlines are supported in values
terminator: Vec<u8>Optional terminator character as a byte
Implementations§
Source§impl CsvOptions
impl CsvOptions
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 schema_infer_max_rec(&self) -> u64
pub fn schema_infer_max_rec(&self) -> u64
Returns the value of schema_infer_max_rec, or the default value if schema_infer_max_rec is unset.
Trait Implementations§
Source§impl Clone for CsvOptions
impl Clone for CsvOptions
Source§fn clone(&self) -> CsvOptions
fn clone(&self) -> CsvOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CsvOptions
impl Debug for CsvOptions
Source§impl Default for CsvOptions
impl Default for CsvOptions
Source§impl Message for CsvOptions
impl Message for CsvOptions
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.