csvto v0.1.1 Csvto.Schema
Module defines the struct for a Csvto.Schema
A Csvto.Schema
generally is been defined through a csv/1
, csv/2
or csv/3
directive defined in Csvto.Builder
.
It keeps the predefined meta required for decode a csv file into corresponding map or struct. Companing with the opts
given by user, the Csvto.Reader
can read and validate the given csv properly
Its fields are:
name
- The name of the schema, used to identify the schemafields
- TheCsvto.Field
defined for this schemaindex_mode
- the predefined mode for indexing fields for a specified csv file, which should be either :index or :name