libvault v0.1.4 Vault.JSON.Adapter behaviour

The adapter interface for encoding, and decoding json or vault requests

Recommended JSON adapters:

Link to this section Summary

Link to this section Types

Link to this type options()
options() :: list() | map()

Link to this section Callbacks

Link to this callback decode!(iodata, list)
decode!(iodata(), [term()]) :: term()
Link to this callback decode(iodata, list)
decode(iodata(), [term()]) :: {:ok, term()} | {:error, term()}
Link to this callback encode!(term, list)
encode!(term(), [term()]) :: String.t()
Link to this callback encode(term, list)
encode(term(), [term()]) :: {:ok, String.t()} | {:error, term()}