View Source Estructura.Config (estructura v1.6.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.

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

Types

generator()

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

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

key()

@type key() :: atom()

The structure key

t()

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

The configuration of Estructura

value()

@type value() :: any()

The structure value