Ash.TypedStruct.Info (ash v3.9.0)

View Source

Introspection for typed structs

Summary

Functions

Returns a list of extensions in use by the typed struct

Get a field by name from the typed struct

Returns all fields of a typed struct

Functions

extensions(typed_struct)

@spec extensions(typed_struct :: Ash.Type.NewType.t()) :: [module()]

Returns a list of extensions in use by the typed struct

field(typed_struct, name)

@spec field(Spark.Dsl.t() | Ash.Type.NewType.t(), String.t() | atom()) ::
  Ash.TypedStruct.Field.t() | nil

Get a field by name from the typed struct

field_names(typed_struct)

@spec field_names(Spark.Dsl.t() | Ash.Type.NewType.t()) :: [atom()]

fields(typed_struct)

Returns all fields of a typed struct