View Source Vault.JSON.Adapter behaviour (libvault v0.2.4)

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

Recommended JSON adapters:

Link to this section Summary

Link to this section Types

@type options() :: list() | map()

Link to this section Callbacks

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