Ash.TypedStruct
View Sourcetyped_struct
Describe the fields of the struct
Nested DSLs
typed_struct.field
field name, type
A field on the struct
Arguments
Name | Type | Default | Docs |
---|---|---|---|
name | atom | The name of the struct field | |
type | module | The type of the struct field |
Options
Name | Type | Default | Docs |
---|---|---|---|
default | any | the default value for the field | |
description | any | a description for the field | |
constraints | any | [] | Constraints to provide to the type when casting the value. For more, see Ash.Type . |
allow_nil? | boolean | true | Whether or not the field can be set to nil. |
Introspection
Target: Ash.TypedStruct.Field