# CostTypeEnum

    enum CostTypeEnum

The different types of costs.
- `


  ### [financial](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostTypeEnum#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV12CostTypeEnumO9financialyA2GmF)


  ` Financial cost.

  #### Declaration

  Swift

      case financial

- `


  ### [ghgEmissions](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostTypeEnum#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV12CostTypeEnumO12ghgEmissionsyA2GmF)


  ` Grid CO2e grams cost.

  #### Declaration

  Swift

      case ghgEmissions

- `


  ### [comfort](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostTypeEnum#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV12CostTypeEnumO7comfortyA2GmF)


  ` Consumer comfort-impact cost.

  #### Declaration

  Swift

      case comfort

- `


  ### [temperature](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostTypeEnum#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV12CostTypeEnumO11temperatureyA2GmF)


  ` Temperature-impact cost.

  #### Declaration

  Swift

      case temperature

- `


  ### [init(rawValue:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostTypeEnum#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV12CostTypeEnumO8rawValueAGSgs6UInt64V_tcfc)


  ` Creates a new instance with the specified raw value.

  If there is no value of the type that corresponds with the specified raw
  value, this initializer returns `nil`. For example:

      enum PaperSize: String {
          case A4, A5, Letter, Legal
      }

      print(PaperSize(rawValue: "Legal"))
      // Prints "Optional(PaperSize.Legal)"

      print(PaperSize(rawValue: "Tabloid"))
      // Prints "nil"

  #### Declaration

  Swift

      init?(rawValue: UInt64)

  #### Parameters

  |---|---|
  | ` rawValue ` | The raw value to use for the new instance. |