commanded v0.10.0 Commanded.EventStore.TypeProvider behaviour

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

Summary

Callbacks

Type of the given Elixir struct as a string

Convert the given type string to an Elixir struct

Types

t()
t() :: module
type()
type() :: String.t

Callbacks

to_string(struct)
to_string(struct) :: type

Type of the given Elixir struct as a string

to_struct(type)
to_struct(type) :: struct

Convert the given type string to an Elixir struct