ash v0.1.1 Ash.Resource.Attributes.Attribute View Source

Link to this section Summary

Link to this section Types

Link to this type

t()

View Source
t() :: %Ash.Resource.Attributes.Attribute{
  default: (() -> term()),
  name: atom(),
  primary_key?: boolean(),
  type: Ash.type()
}

Link to this section Functions

Link to this function

new(name, type, opts)

View Source
new(atom(), Ash.Type.t(), Keyword.t()) :: {:ok, t()} | {:error, term()}