auto_api v0.1.0 AutoApi.State behaviour View Source

State behaviour

It’s important to be added after defstruct line:

defmodule XxxState do
  defstruct x: nil
  use AutoApi.State
end

Link to this section Summary

Link to this section Callbacks

Link to this callback base() View Source
base() :: struct()
Link to this callback from_bin(binary) View Source
from_bin(binary()) :: struct()
Link to this callback to_bin(struct) View Source
to_bin(struct()) :: binary()