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

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

Functions

Get the configured type provider

Types

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

Functions

@spec type_provider() :: module()

Get the configured type provider