Ash.TypedStruct.Info (ash v3.9.0)
View SourceIntrospection 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
@spec extensions(typed_struct :: Ash.Type.NewType.t()) :: [module()]
Returns a list of extensions in use by the typed struct
@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
@spec field_names(Spark.Dsl.t() | Ash.Type.NewType.t()) :: [atom()]
@spec fields(Spark.Dsl.t() | Ash.Type.NewType.t()) :: [Ash.TypedStruct.Field.t()]
Returns all fields of a typed struct