Commanded.Serialization.Serializer behaviour (Commanded v1.4.9)

View Source

Specification of a generic serializer.

Summary

Callbacks

Deserialize the given data to the corresponding term.

Serialize the given term.

Types

config()

@type config() :: Keyword.t()

t()

@type t() :: module()

Callbacks

deserialize(arg1, config)

@callback deserialize(binary() | map(), config()) :: any()

Deserialize the given data to the corresponding term.

serialize(any)

@callback serialize(any()) :: binary() | map()

Serialize the given term.