Ash.Resource.Calculation (ash v1.47.4) View Source

Represents a named calculation on a resource

Link to this section Summary

Link to this section Types

Specs

t() :: %Ash.Resource.Calculation{
  allow_nil?: boolean(),
  arguments: [any()],
  calculation: {:ok, {atom(), any()}} | {:error, String.t()},
  constraints: term(),
  description: String.t() | nil,
  load: term(),
  name: atom(),
  private?: boolean(),
  select: term(),
  type: term()
}

Link to this section Functions