Commanded v0.14.0-rc.0 Commanded.EventStore.TypeProvider behaviour View Source

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

Link to this section Summary

Functions

Get the configured type provider

Callbacks

Type of the given Elixir struct as a string

Convert the given type string to an Elixir struct

Link to this section Types

Link to this section Functions

Link to this function type_provider() View Source
type_provider() :: module

Get the configured type provider

Link to this section Callbacks

Link to this callback to_string(struct) View Source
to_string(struct) :: type

Type of the given Elixir struct as a string

Link to this callback to_struct(type) View Source
to_struct(type) :: struct

Convert the given type string to an Elixir struct