AshTui.Introspection.ResourceInfo (AshTui v0.3.1)

Copy Markdown View Source

Holds introspection data for a single Ash resource.

Fields

  • :name - the resource module atom (e.g. MyApp.Accounts.User)
  • :domain - the parent domain module atom
  • :primary_key - list of attribute names forming the primary key
  • :attributes - list of %AshTui.Introspection.AttributeInfo{} structs
  • :actions - list of %AshTui.Introspection.ActionInfo{} structs
  • :relationships - list of %AshTui.Introspection.RelationshipInfo{} structs

Summary

Types

t()

@type t() :: %AshTui.Introspection.ResourceInfo{
  actions: [AshTui.Introspection.ActionInfo.t()],
  attributes: [AshTui.Introspection.AttributeInfo.t()],
  domain: atom(),
  name: atom(),
  primary_key: [atom()],
  relationships: [AshTui.Introspection.RelationshipInfo.t()]
}