Skip to content

StructFieldOptions

StructFieldOptions describes a struct field initializer.

field: string

field names the initialized field.


optional optional?: boolean

optional marks the field as conditionally present.


value: Expr

value computes the initialized field value.