pub struct CsvFormatFactory {
pub options: Option<CsvOptions>,
}
Expand description
Factory used to create CsvFormat
Fields§
§options: Option<CsvOptions>
the options for csv file read
Implementations§
Source§impl CsvFormatFactory
impl CsvFormatFactory
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates an instance of CsvFormatFactory
Sourcepub fn new_with_options(options: CsvOptions) -> Self
pub fn new_with_options(options: CsvOptions) -> Self
Creates an instance of CsvFormatFactory
with customized default options
Trait Implementations§
Source§impl Debug for CsvFormatFactory
impl Debug for CsvFormatFactory
Source§impl Default for CsvFormatFactory
impl Default for CsvFormatFactory
Source§fn default() -> CsvFormatFactory
fn default() -> CsvFormatFactory
Returns the “default value” for a type. Read more
Source§impl FileFormatFactory for CsvFormatFactory
impl FileFormatFactory for CsvFormatFactory
Source§fn create(
&self,
state: &dyn Session,
format_options: &HashMap<String, String>,
) -> Result<Arc<dyn FileFormat>>
fn create( &self, state: &dyn Session, format_options: &HashMap<String, String>, ) -> Result<Arc<dyn FileFormat>>
Initialize a FileFormat and configure based on session and command level options
Source§fn default(&self) -> Arc<dyn FileFormat>
fn default(&self) -> Arc<dyn FileFormat>
Initialize a FileFormat with all options set to default values
Auto Trait Implementations§
impl Freeze for CsvFormatFactory
impl RefUnwindSafe for CsvFormatFactory
impl Send for CsvFormatFactory
impl Sync for CsvFormatFactory
impl Unpin for CsvFormatFactory
impl UnwindSafe for CsvFormatFactory
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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