pub struct Builder { /* private fields */ }Expand description
A builder for DelimitedTextImportOptions.
Implementations§
source§impl Builder
impl Builder
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.
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 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 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 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 build(self) -> DelimitedTextImportOptions
pub fn build(self) -> DelimitedTextImportOptions
Consumes the builder and constructs a DelimitedTextImportOptions.