Struct agnes::source::CsvReader
[−]
[src]
pub struct CsvReader { /* fields omitted */ }
Reader object responsible for converting a CSV file into a data store.
Methods
impl CsvReader
[src]
pub fn new(src: &CsvSource) -> Result<CsvReader>
[src]
Create a new CSV reader from a CSV source specification. This will process header row (if
exists), and verify the fields specified in the CsvSource
object exist in this CSV file.
pub fn read(&mut self) -> Result<DataStore>
[src]
Read a CsvSource
into a DataStore
object.