#
View Source Ash.Resource.Actions.Implementation behaviour (ash v2.14.2)

An implementation of a generic action.

# Link to this section Summary

## Types

context()

## Callbacks

run(t, opts, context)

# Link to this section Types

Link to this type

# context()

View Source

    @type context() :: %{
      optional(:actor) => term(),
      optional(:tenant) => term(),
      optional(:authorize?) => boolean(),
      optional(:api) => module(),
      optional(any()) => any()
    }

# Link to this section Callbacks

Link to this callback

# run(t, opts, context)

View Source

    @callback run(Ash.ActionInput.t(), opts :: Keyword.t(), context()) ::
      {:ok, term()} | {:ok, [Ash.Notifier.Notification.t()]} | {:error, term()}