Search
Behaviour that specifies how events and snapshots can be serialized and deserialized.
@callback deserialize(input :: binary(), type :: atom() | nil) :: {:ok, term()} | {:error, term()}
@callback serialize(input :: map()) :: {:ok, binary()} | {:error, term()}