#[non_exhaustive]pub struct CsvConfigurationBuilder { /* private fields */ }
Expand description
A builder for CsvConfiguration
.
Implementations§
source§impl CsvConfigurationBuilder
impl CsvConfigurationBuilder
sourcepub fn column_separator(self, input: impl Into<String>) -> Self
pub fn column_separator(self, input: impl Into<String>) -> Self
Column separator can be one of comma (','), pipe ('|), semicolon (';'), tab('/t'), or blank space (' ').
sourcepub fn set_column_separator(self, input: Option<String>) -> Self
pub fn set_column_separator(self, input: Option<String>) -> Self
Column separator can be one of comma (','), pipe ('|), semicolon (';'), tab('/t'), or blank space (' ').
sourcepub fn get_column_separator(&self) -> &Option<String>
pub fn get_column_separator(&self) -> &Option<String>
Column separator can be one of comma (','), pipe ('|), semicolon (';'), tab('/t'), or blank space (' ').
sourcepub fn escape_char(self, input: impl Into<String>) -> Self
pub fn escape_char(self, input: impl Into<String>) -> Self
Escape character can be one of
sourcepub fn set_escape_char(self, input: Option<String>) -> Self
pub fn set_escape_char(self, input: Option<String>) -> Self
Escape character can be one of
sourcepub fn get_escape_char(&self) -> &Option<String>
pub fn get_escape_char(&self) -> &Option<String>
Escape character can be one of
sourcepub fn quote_char(self, input: impl Into<String>) -> Self
pub fn quote_char(self, input: impl Into<String>) -> Self
Can be single quote (') or double quote (").
sourcepub fn set_quote_char(self, input: Option<String>) -> Self
pub fn set_quote_char(self, input: Option<String>) -> Self
Can be single quote (') or double quote (").
sourcepub fn get_quote_char(&self) -> &Option<String>
pub fn get_quote_char(&self) -> &Option<String>
Can be single quote (') or double quote (").
sourcepub fn null_value(self, input: impl Into<String>) -> Self
pub fn null_value(self, input: impl Into<String>) -> Self
Can be blank space (' ').
sourcepub fn set_null_value(self, input: Option<String>) -> Self
pub fn set_null_value(self, input: Option<String>) -> Self
Can be blank space (' ').
sourcepub fn get_null_value(&self) -> &Option<String>
pub fn get_null_value(&self) -> &Option<String>
Can be blank space (' ').
sourcepub fn trim_white_space(self, input: bool) -> Self
pub fn trim_white_space(self, input: bool) -> Self
Specifies to trim leading and trailing white space.
sourcepub fn set_trim_white_space(self, input: Option<bool>) -> Self
pub fn set_trim_white_space(self, input: Option<bool>) -> Self
Specifies to trim leading and trailing white space.
sourcepub fn get_trim_white_space(&self) -> &Option<bool>
pub fn get_trim_white_space(&self) -> &Option<bool>
Specifies to trim leading and trailing white space.
sourcepub fn build(self) -> CsvConfiguration
pub fn build(self) -> CsvConfiguration
Consumes the builder and constructs a CsvConfiguration
.
Trait Implementations§
source§impl Clone for CsvConfigurationBuilder
impl Clone for CsvConfigurationBuilder
source§fn clone(&self) -> CsvConfigurationBuilder
fn clone(&self) -> CsvConfigurationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CsvConfigurationBuilder
impl Debug for CsvConfigurationBuilder
source§impl Default for CsvConfigurationBuilder
impl Default for CsvConfigurationBuilder
source§fn default() -> CsvConfigurationBuilder
fn default() -> CsvConfigurationBuilder
source§impl PartialEq<CsvConfigurationBuilder> for CsvConfigurationBuilder
impl PartialEq<CsvConfigurationBuilder> for CsvConfigurationBuilder
source§fn eq(&self, other: &CsvConfigurationBuilder) -> bool
fn eq(&self, other: &CsvConfigurationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.