AshTui.Introspection.AttributeInfo (AshTui v0.3.1)

Copy Markdown View Source

Holds introspection data for a resource attribute.

Fields

  • :name - the attribute name atom (e.g. :email)
  • :type - the Ash type (atom or {:array, atom()})
  • :allow_nil? - whether nil values are accepted (default true)
  • :primary_key? - whether this attribute is part of the primary key (default false)
  • :generated? - whether the value is auto-generated (default false)
  • :constraints - keyword list of type constraints (e.g. [trim?: true])

Summary

Types

t()

@type t() :: %AshTui.Introspection.AttributeInfo{
  allow_nil?: boolean(),
  constraints: keyword(),
  generated?: boolean(),
  name: atom(),
  primary_key?: boolean(),
  type: atom() | {:array, atom()}
}