urna v0.2.5 Urna.Adapter behaviour

Summary

Callbacks

accept?(mime_type)
accept?(mime_type :: String.t) :: boolean
decode(mime_type, arg1)
decode(mime_type :: String.t, String.t) ::
  {:ok, decoded :: term} |
  {:error, reason :: term}
encode(mime_type, term)
encode(mime_type :: String.t, term) :: {mime_type :: String.t, encoded :: String.t}