pub struct CsvOptions {
pub lat_column: String,
pub lon_column: String,
pub timestamp_column: String,
pub elevation_column: Option<String>,
pub text_column: Option<String>,
pub tags_column: Option<String>,
pub source_name_column: Option<String>,
pub source_type_column: Option<String>,
pub include_headers: bool,
pub delimiter: u8,
}Expand description
Configuration options for CSV import/export.
Fields§
§lat_column: StringColumn name for latitude (defaults to “lat”)
lon_column: StringColumn name for longitude (defaults to “lon”)
timestamp_column: StringColumn name for timestamp (defaults to “timestamp”)
elevation_column: Option<String>Column name for elevation (optional)
text_column: Option<String>Column name for text/description (optional)
Column name for tags (optional, comma-separated in cell)
source_name_column: Option<String>Column name for source name (optional)
source_type_column: Option<String>Column name for source type (optional)
include_headers: boolWhether to include headers in exported CSV
delimiter: u8CSV delimiter character
Trait Implementations§
Source§impl Clone for CsvOptions
impl Clone for CsvOptions
Source§fn clone(&self) -> CsvOptions
fn clone(&self) -> CsvOptions
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 CsvOptions
impl Debug for CsvOptions
Auto Trait Implementations§
impl Freeze for CsvOptions
impl RefUnwindSafe for CsvOptions
impl Send for CsvOptions
impl Sync for CsvOptions
impl Unpin for CsvOptions
impl UnwindSafe for CsvOptions
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