View Source Estructura.Config (estructura v0.5.5)

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

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

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

@type key() :: atom()

The structure key

@type 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

@type value() :: any()

The structure value