ash v0.1.3 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{
  allow_nil?: term(),
  default: (() -> term()),
  generated?: term(),
  name: atom(),
  primary_key?: boolean(),
  type: Ash.type(),
  update_default: (() -> term()) | (Ash.record() -> term()),
  writable?: boolean()
}

Link to this section Functions

Link to this function

new(resource, name, type, opts)

View Source
new(Ash.resource(), atom(), Ash.Type.t(), Keyword.t()) ::
  {:ok, t()} | {:error, term()}
Link to this function

validate_default(value, _)

View Source