method
Definition.Index
func (d Definition) Index() boolIndex reports whether the field should have a non-unique database index. Unique fields already receive a unique index even when this is false.
Related types
DefinitionAn immutable authored field definition.