#[non_exhaustive]pub struct DelimitedTextImportOptionsBuilder { /* private fields */ }
Expand description
A builder for DelimitedTextImportOptions
.
Implementations§
source§impl DelimitedTextImportOptionsBuilder
impl DelimitedTextImportOptionsBuilder
sourcepub fn delimiter(self, input: impl Into<String>) -> Self
pub fn delimiter(self, input: impl Into<String>) -> Self
The delimiter to use for separating columns in a single row of the input.
This field is required.sourcepub fn set_delimiter(self, input: Option<String>) -> Self
pub fn set_delimiter(self, input: Option<String>) -> Self
The delimiter to use for separating columns in a single row of the input.
sourcepub fn get_delimiter(&self) -> &Option<String>
pub fn get_delimiter(&self) -> &Option<String>
The delimiter to use for separating columns in a single row of the input.
sourcepub fn has_header_row(self, input: bool) -> Self
pub fn has_header_row(self, input: bool) -> Self
Indicates whether the input file has a header row at the top containing the column names.
sourcepub fn set_has_header_row(self, input: Option<bool>) -> Self
pub fn set_has_header_row(self, input: Option<bool>) -> Self
Indicates whether the input file has a header row at the top containing the column names.
sourcepub fn get_has_header_row(&self) -> &Option<bool>
pub fn get_has_header_row(&self) -> &Option<bool>
Indicates whether the input file has a header row at the top containing the column names.
sourcepub fn ignore_empty_rows(self, input: bool) -> Self
pub fn ignore_empty_rows(self, input: bool) -> Self
A parameter to indicate whether empty rows should be ignored or be included in the import.
sourcepub fn set_ignore_empty_rows(self, input: Option<bool>) -> Self
pub fn set_ignore_empty_rows(self, input: Option<bool>) -> Self
A parameter to indicate whether empty rows should be ignored or be included in the import.
sourcepub fn get_ignore_empty_rows(&self) -> &Option<bool>
pub fn get_ignore_empty_rows(&self) -> &Option<bool>
A parameter to indicate whether empty rows should be ignored or be included in the import.
sourcepub fn data_character_encoding(self, input: ImportDataCharacterEncoding) -> Self
pub fn data_character_encoding(self, input: ImportDataCharacterEncoding) -> Self
The encoding of the data in the input file.
sourcepub fn set_data_character_encoding(
self,
input: Option<ImportDataCharacterEncoding>
) -> Self
pub fn set_data_character_encoding( self, input: Option<ImportDataCharacterEncoding> ) -> Self
The encoding of the data in the input file.
sourcepub fn get_data_character_encoding(
&self
) -> &Option<ImportDataCharacterEncoding>
pub fn get_data_character_encoding( &self ) -> &Option<ImportDataCharacterEncoding>
The encoding of the data in the input file.
sourcepub fn build(self) -> Result<DelimitedTextImportOptions, BuildError>
pub fn build(self) -> Result<DelimitedTextImportOptions, BuildError>
Consumes the builder and constructs a DelimitedTextImportOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DelimitedTextImportOptionsBuilder
impl Clone for DelimitedTextImportOptionsBuilder
source§fn clone(&self) -> DelimitedTextImportOptionsBuilder
fn clone(&self) -> DelimitedTextImportOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for DelimitedTextImportOptionsBuilder
impl Default for DelimitedTextImportOptionsBuilder
source§fn default() -> DelimitedTextImportOptionsBuilder
fn default() -> DelimitedTextImportOptionsBuilder
source§impl PartialEq for DelimitedTextImportOptionsBuilder
impl PartialEq for DelimitedTextImportOptionsBuilder
source§fn eq(&self, other: &DelimitedTextImportOptionsBuilder) -> bool
fn eq(&self, other: &DelimitedTextImportOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DelimitedTextImportOptionsBuilder
Auto Trait Implementations§
impl Freeze for DelimitedTextImportOptionsBuilder
impl RefUnwindSafe for DelimitedTextImportOptionsBuilder
impl Send for DelimitedTextImportOptionsBuilder
impl Sync for DelimitedTextImportOptionsBuilder
impl Unpin for DelimitedTextImportOptionsBuilder
impl UnwindSafe for DelimitedTextImportOptionsBuilder
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