View Source Estructura.Config (estructura v0.3.0)

The configuration of the Estructura that is built from the parameters, passed as a second argument in a call to use Estructura.

One normally does not need to meddle with this module.

Link to this section Summary

Types

The generator to be passed to use Estructura should be given in one of these forms

The structure key

t()

The configuration of Estructura

The structure value

Link to this section Types

Specs

generator() :: {module(), atom()} | {module(), atom(), [any()]} | (() -> any())

The generator to be passed to use Estructura should be given in one of these forms

Specs

key() :: atom()

The structure key

Specs

t() :: %Estructura.Config{
  access: boolean(),
  coercion: false | true | [key()],
  validation: false | true | [key()],
  colleactable: false | key(),
  enumerable: boolean(),
  generator: [{key(), generator()}]
}

The configuration of Estructura

Specs

value() :: any()

The structure value