csvto v0.1.3 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.Fielddefined for this schemaindex_mode- the predefined mode for indexing fields for a specified csv file, which should be either :index or :name
Link to this section Summary
Link to this section Types
Link to this type
t()
t() :: %Csvto.Schema{
fields: [Csvto.Field.t()],
index_mode: index_mode(),
module: atom(),
name: atom()
}