Ash.Scope.ToOpts protocol (ash v3.5.24)

View Source

Summary

Functions

Extracts the actor from the scope

Extracts the authorize? option from the scope

Extracts the context from the scope

Extracts the tenant from the scope

Extracts the tracer(s) from the scope

Types

t()

@type t() :: term()

Functions

get_actor(scope)

@spec get_actor(term()) :: {:ok, term()} | :error

Extracts the actor from the scope

get_authorize?(scope)

@spec get_authorize?(term()) :: {:ok, boolean()} | :error

Extracts the authorize? option from the scope

get_context(scope)

@spec get_context(term()) :: {:ok, term()} | :error

Extracts the context from the scope

get_tenant(scope)

@spec get_tenant(term()) :: {:ok, term()} | :error

Extracts the tenant from the scope

get_tracer(scope)

@spec get_tracer(term()) :: {:ok, module() | [module()]} | :error

Extracts the tracer(s) from the scope