    struct ConstraintUnit

    extension ConstraintUnit : Equatable, Hashable, Sendable, SendableMetatype

Represents a unit of measurement which consists of a base unit and a scale.

For example, if a field has the unit centi-celsius, the base unit would be Celsius and the
multiplier would be 0.01.
- `


  ### [baseUnit](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit#/s:13GoogleHomeSDK14ConstraintUnitV04baseE0AA04BaseE0Ovp)


  ` The base unit.

  #### Declaration

  Swift

      let baseUnit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/BaseUnit.html

- `


  ### [scale](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit#/s:13GoogleHomeSDK14ConstraintUnitV5scaleSdvp)


  ` The multiplier used to derive a value expressed using `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html#/s:13GoogleHomeSDK14ConstraintUnitV04baseE0AA04BaseE0Ovp`.

  #### Declaration

  Swift

      let scale: Double

- `


  ### [init(baseUnit:scale:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit#/s:13GoogleHomeSDK14ConstraintUnitV04baseE05scaleAcA04BaseE0O_Sdtcfc)


  ` Initializes a `ConstraintUnit` with a base unit and a scale.

  #### Declaration

  Swift

      init(baseUnit: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Enums/BaseUnit.html, scale: Double)

  #### Parameters

  |---|---|
  | ` baseUnit ` | The base unit. |
  | ` scale ` | The multiplier used to derive a value expressed using `https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/ConstraintUnit.html#/s:13GoogleHomeSDK14ConstraintUnitV04baseE0AA04BaseE0Ovp`. |