    struct HoldTimeLimitsStruct

Provides information on the server's supported values for the holdTime attribute.
- `


  ### [holdTimeMin](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV04holdI3Mins6UInt16Vvp)


  ` The minimum supported value for the holdTime attribute, in seconds.

  #### Declaration

  Swift

      let holdTimeMin: UInt16

- `


  ### [holdTimeMax](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV04holdI3Maxs6UInt16Vvp)


  ` The maximum supported value for the holdTime attribute, in seconds.

  #### Declaration

  Swift

      let holdTimeMax: UInt16

- `


  ### [holdTimeDefault](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV04holdI7Defaults6UInt16Vvp)


  ` The default value for the holdTime attribute, in seconds.

  #### Declaration

  Swift

      let holdTimeDefault: UInt16

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV7decoderAG0aB3SDK0G7DecoderV_tKcfc)


  ` Creates a new Struct instance using data read from the given `TraitDecoder`.
  Throws
  `HomeError.parseError` when parsing fails.

  #### Declaration

  Swift

      init(decoder: TraitDecoder) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The raw data representing this Struct. |

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV6encode4withy0aB3SDK0G7EncoderC_tKF)


  ` Writes this Struct to the given `TraitEncoder`.
  Throws `HomeError.parseError` if the data could not be encoded.

  #### Declaration

  Swift

      func encode(with encoder: TraitEncoder) throws

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/OccupancySensingTrait/HoldTimeLimitsStruct#/s:15GoogleHomeTypes6MatterO21OccupancySensingTraitV20HoldTimeLimitsStructV11structField2id0aB3SDK0M0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any Field)?