Noizu.Entity.Json.Protocol protocol (NoizuLabs Entities v0.2.1)
Define the Noizu.Entity.Json.Protocol used for preparing format style json responses. TODO https://github.com/noizu-labs-scaffolding/entities/issues/2
Summary
Types
@type protocol_response() :: {:error, any()} | {:ok, any()} | {:omit, any()} | restricted() | {restricted(), any()} | nil
@type restricted() :: :"*restricted*"
@type t() :: term()
All the types that implement this protocol.
Functions
@spec prep(term :: term(), settings :: term(), context :: term(), options :: term()) :: protocol_response()