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

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

@callback to_string(struct()) :: type()

Type of the given Elixir struct as a string

@callback to_struct(type()) :: struct()

Convert the given type string to an Elixir struct

Link to this section Functions

@spec type_provider() :: module()

Get the configured type provider