interface

UniqueOption

type UniqueOption interface { StringOption NumberOption CheckboxOption SelectOption RelationshipOption UploadOption }

Options accepted by indexable scalar and reference fields.

Source field/options.go:130

StringOptionStringOption
The StringOption value.
NumberOptionNumberOption
The NumberOption value.
CheckboxOptionCheckboxOption
The CheckboxOption value.
SelectOptionSelectOption
The SelectOption value.
RelationshipOptionRelationshipOption
The RelationshipOption value.
UploadOptionUploadOption
The UploadOption value.

Only option values returned by this package implement the sealed marker. The narrow interface makes incompatible builder options a compile-time error.