ExCop v0.1.0 ExCop.Policy.Protocol protocol View Source

Link to this section Summary

Link to this section Types

Specs

args() :: map()

Specs

context() :: map()

Specs

error_response() :: {:error, atom()} | {:error, atom(), String.t()}

Specs

field() :: atom()

Specs

parent() :: any()

Specs

response() :: :ok | error_response()

Specs

t() :: term()

Specs

user() :: struct() | nil

Link to this section Functions

Link to this function

can?(target, user, parent, field, ctx, args)

View Source

Specs

can?(t(), user(), parent(), field(), context(), args()) :: response()