interface

Option

type Option interface{ apply(*builder) }

The sealed base interface for field options.

Source field/options.go:16

Builders accept narrower exported interfaces—StringOption, NumberOption, CheckboxOption, JSONOption, SelectOption, RelationshipOption, UploadOption, GroupOption, ArrayOption, BlocksOption, JoinOption, and PluginOption—so unsupported combinations do not compile.

CommonOption applies to every kind. LocalizedOption, UniqueOption, DefaultOption, RelationshipOrUploadOption, and NestedOption describe compatible subsets. Unexported methods intentionally prevent third-party implementations.