#[non_exhaustive]pub struct SqlCsvExportOptions {
pub select_query: String,
pub escape_character: String,
pub quote_character: String,
pub fields_terminated_by: String,
pub lines_terminated_by: String,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.select_query: String
The select query used to extract the data.
escape_character: String
Specifies the character that should appear before a data character that needs to be escaped.
quote_character: String
Specifies the quoting character to be used when a data value is quoted.
fields_terminated_by: String
Specifies the character that separates columns within each row (line) of the file.
lines_terminated_by: String
This is used to separate lines. If a line does not contain all fields, the rest of the columns are set to their default values.
Implementations§
Source§impl SqlCsvExportOptions
impl SqlCsvExportOptions
pub fn new() -> Self
Sourcepub fn set_select_query<T: Into<String>>(self, v: T) -> Self
pub fn set_select_query<T: Into<String>>(self, v: T) -> Self
Sets the value of select_query.
Sourcepub fn set_escape_character<T: Into<String>>(self, v: T) -> Self
pub fn set_escape_character<T: Into<String>>(self, v: T) -> Self
Sets the value of escape_character.
Sourcepub fn set_quote_character<T: Into<String>>(self, v: T) -> Self
pub fn set_quote_character<T: Into<String>>(self, v: T) -> Self
Sets the value of quote_character.
Sourcepub fn set_fields_terminated_by<T: Into<String>>(self, v: T) -> Self
pub fn set_fields_terminated_by<T: Into<String>>(self, v: T) -> Self
Sets the value of fields_terminated_by.
Sourcepub fn set_lines_terminated_by<T: Into<String>>(self, v: T) -> Self
pub fn set_lines_terminated_by<T: Into<String>>(self, v: T) -> Self
Sets the value of lines_terminated_by.
Trait Implementations§
Source§impl Clone for SqlCsvExportOptions
impl Clone for SqlCsvExportOptions
Source§fn clone(&self) -> SqlCsvExportOptions
fn clone(&self) -> SqlCsvExportOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SqlCsvExportOptions
impl Debug for SqlCsvExportOptions
Source§impl Default for SqlCsvExportOptions
impl Default for SqlCsvExportOptions
Source§fn default() -> SqlCsvExportOptions
fn default() -> SqlCsvExportOptions
Returns the “default value” for a type. Read more
Source§impl Message for SqlCsvExportOptions
impl Message for SqlCsvExportOptions
Source§impl PartialEq for SqlCsvExportOptions
impl PartialEq for SqlCsvExportOptions
impl StructuralPartialEq for SqlCsvExportOptions
Auto Trait Implementations§
impl Freeze for SqlCsvExportOptions
impl RefUnwindSafe for SqlCsvExportOptions
impl Send for SqlCsvExportOptions
impl Sync for SqlCsvExportOptions
impl Unpin for SqlCsvExportOptions
impl UnwindSafe for SqlCsvExportOptions
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