documentation/dsls/DSL-Ash.TypedStruct.md
Describe the fields of the struct
field name, type
A field on the struct
| Name | Type | Default | Docs |
|---|---|---|---|
name{: #typed_struct-field-name .spark-required} | atom | The name of the struct field | |
type{: #typed_struct-field-type .spark-required} | module | The type of the struct field |
| Name | Type | Default | Docs |
|---|---|---|---|
default{: #typed_struct-field-default } | any | the default value for the field | |
description{: #typed_struct-field-description } | any | a description for the field | |
constraints{: #typed_struct-field-constraints } | any | [] | Constraints to provide to the type when casting the value. For more, see Ash.Type. |
allow_nil?{: #typed_struct-field-allow_nil? } | boolean | true | Whether or not the field can be set to nil. |
Target: Ash.TypedStruct.Field