Search
Specifies the contracts to build the Chainweb types for endpoints.
@type attrs() :: map() | struct() | Keyword.t() | list() | String.t()
@type error() :: {:error, Keyword.t()}
@type json() :: String.t()
@type resource() :: struct()
@callback new(attrs()) :: resource() | error()
@callback to_json!(resource()) :: json()