# FieldDetails

    protocol FieldDetails : Hashable

Basic information about a Trait field.
- `


  ### [isOptional](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/FieldDetails#/s:13GoogleHomeSDK12FieldDetailsP10isOptionalSbvp)


  ` Whether the field is optional.

  #### Declaration

  Swift

      var isOptional: Bool { get }

- `


  ### [constraint](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/FieldDetails#/s:13GoogleHomeSDK12FieldDetailsP10constraintAA10ConstraintOSgvp)


  ` The constraint for the field.

  #### Declaration

  Swift

      var constraint: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/Constraint.html? { get }

- `


  ### [field](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/FieldDetails#/s:13GoogleHomeSDK12FieldDetailsP5fieldAA0D0_pvp)


  ` The field.

  #### Declaration

  Swift

      var field: any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html { get }