View Source Ash.Resource.Calculation (ash v2.14.17)

Represents a named calculation on a resource

Summary

Types

@type ref() :: {module(), Keyword.t()} | module()
@type t() :: %Ash.Resource.Calculation{
  allow_nil?: boolean(),
  arguments: [Ash.Resource.Calculation.Argument.t()],
  calculation: module() | {module(), keyword()},
  constraints: keyword(),
  description: nil | String.t(),
  filterable?: boolean(),
  load: keyword(),
  name: atom(),
  private?: boolean(),
  select: keyword(),
  type: nil | Ash.Type.t()
}

Functions