Constructor

An Elixir library for declaratively defining structs with field-level conversions and validations.

Check out the docs to learn about all the features.

Installation

Add constructor to your list of dependencies in mix.exs:

def deps do
  [
    {:constructor, "~> 1.0.0-rc.0"}
  ]
end

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/constructor.