Intro
Add a custom derive to a struct to make it parsable from CSVs. The derive makes it possible to construct a CSVIterator over your type. The backend will ignore extra columns as necessary, and only requires that the columns which have fields in your struct exist. The String::parse<> functions are used to parse CSV fields to the datatype of the field in your struct.
Installation
[]
= "0.2.0"
= "0.2.0"
= "0.14.0"
csv
is a sibling dependency because you have to create the csv::Reader
yourself.
Usage example
extern crate easy_csv;
extern crate easy_csv_derive;
extern crate csv;
use ;
Output: [Record { a: 2, b: -3, d: "bar" }]