View Source Blunt.Message behaviour (blunt v0.1.1)

options

Options

  • message_type - required atom
  • create_jason_encoders? - default value: true
  • require_all_fields? - default value: false
  • versioned? - default value: false
  • dispatch? - default value: false
  • primary_key - default value: false
  • constructor - default value: :new

Link to this section Summary

Link to this section Types

Specs

changeset() :: Ecto.Changeset.t()

Link to this section Callbacks

Specs

after_validate(struct()) :: struct()
Link to this callback

handle_validate(changeset)

View Source

Specs

handle_validate(changeset()) :: changeset()

Link to this section Functions

Link to this macro

field(name, type, opts \\ [])

View Source (macro)

Specs

field(name :: atom(), type :: atom(), keyword()) :: any()
Link to this macro

internal_field(name, type, opts \\ [])

View Source (macro)

Specs

internal_field(name :: atom(), type :: atom(), keyword()) :: any()
Link to this macro

metadata(name, value)

View Source (macro)

Specs

metadata(atom(), any()) :: any()