pub struct ReadOptions {
pub select: Option<Vec<String>>,
pub n_max: Option<u64>,
pub trim_ws: bool,
pub encoding: Encoding,
pub guess_types: bool,
pub col_types: Vec<(String, ColType)>,
pub parse_dates: bool,
}Expand description
Reader options; the defaults match read_datasus_dbc().
Fields§
§select: Option<Vec<String>>Columns to keep (case-insensitive). None or empty keeps all.
n_max: Option<u64>Maximum number of live (non-deleted) records to read.
trim_ws: boolTrim whitespace from character fields. Numeric, date and logical fields are always trimmed before parsing.
encoding: Encoding§guess_types: boolScan numeric fields to tell integer columns from double columns.
col_types: Vec<(String, ColType)>Explicit column types, matched case-insensitively by field name.
parse_dates: boolReturn D fields as dates instead of text.
Trait Implementations§
Source§impl Clone for ReadOptions
impl Clone for ReadOptions
Source§impl Debug for ReadOptions
impl Debug for ReadOptions
Auto Trait Implementations§
impl Forget for ReadOptions
impl Freeze for ReadOptions
impl Move for ReadOptions
impl RefUnwindSafe for ReadOptions
impl Send for ReadOptions
impl Sync for ReadOptions
impl Unpin for ReadOptions
impl UnsafeUnpin for ReadOptions
impl UnwindSafe for ReadOptions
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