Commanded.EventStore.TypeProvider behaviour (Commanded v1.3.1) View Source

Specification to convert between an Elixir struct and a corresponding string type.

Link to this section Summary

Callbacks

Type of the given Elixir struct as a string

Convert the given type string to an Elixir struct

Functions

Get the configured type provider

Link to this section Types

Link to this section Callbacks

Specs

to_string(struct()) :: type()

Type of the given Elixir struct as a string

Specs

to_struct(type()) :: struct()

Convert the given type string to an Elixir struct

Link to this section Functions

Specs

type_provider() :: module()

Get the configured type provider