#[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 for CsvConfigurationBuilder
impl PartialEq 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 ==.impl StructuralPartialEq for CsvConfigurationBuilder
Auto Trait Implementations§
impl Freeze for CsvConfigurationBuilder
impl RefUnwindSafe for CsvConfigurationBuilder
impl Send for CsvConfigurationBuilder
impl Sync for CsvConfigurationBuilder
impl Unpin for CsvConfigurationBuilder
impl UnwindSafe for CsvConfigurationBuilder
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
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>
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