Field

public struct Field : Decodable

A Field describes a single value inside an Entry.

  • id

    The unique identifier of this Field

    Declaration

    Swift

    public let id: String
  • The name of this Field

    Declaration

    Swift

    public let name: String
  • Whether this field is disabled (invisible by default in the UI)

    Declaration

    Swift

    public let disabled: Bool
  • Whether this field is localized (can have different values depending on locale)

    Declaration

    Swift

    public let localized: Bool
  • Whether this field is required (needs to have a value)

    Declaration

    Swift

    public let required: Bool
  • The type of this Field

    Declaration

    Swift

    public let type: FieldType
  • The item type of this Field (a subtype if type is Array or Link) For Arrays, itemType is inferred via items.type. For Links, itemType is inferred via “linkType”.

    Declaration

    Swift

    public let itemType: FieldType
  • Declaration

    Swift

    public init(from decoder: Decoder) throws