    struct SlotStruct

Indicates a specific stage of an ESA's operation.
- `


  ### [minDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV11minDurations6UInt32Vvp)


  ` The minimum time, in seconds, that the appliance is expected to be in its slot.

  #### Declaration

  Swift

      let minDuration: UInt32

- `


  ### [maxDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV11maxDurations6UInt32Vvp)


  ` The maximum time, in seconds, that the appliance is expected to be in its slot.

  #### Declaration

  Swift

      let maxDuration: UInt32

- `


  ### [defaultDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV15defaultDurations6UInt32Vvp)


  ` The time, in seconds, that the appliance is expected to be in its slot.

  #### Declaration

  Swift

      let defaultDuration: UInt32

- `


  ### [elapsedSlotTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV07elapsedI4Times6UInt32Vvp)


  ` The time, in seconds, that has already elapsed with the appliance in its slot.

  #### Declaration

  Swift

      let elapsedSlotTime: UInt32

- `


  ### [remainingSlotTime](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV09remainingI4Times6UInt32Vvp)


  ` The remaining time, in seconds, that the appliance is expected to be in its slot.

  #### Declaration

  Swift

      let remainingSlotTime: UInt32

- `


  ### [slotIsPausable](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV14slotIsPausableSbSgvp)


  ` Indicates whether this slot can be paused.

  #### Declaration

  Swift

      let slotIsPausable: Bool?

- `


  ### [minPauseDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV16minPauseDurations6UInt32VSgvp)


  ` The shortest amount of time, in seconds, that the slot can be paused.

  #### Declaration

  Swift

      let minPauseDuration: UInt32?

- `


  ### [maxPauseDuration](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV16maxPauseDurations6UInt32VSgvp)


  ` The maximum amount of time, in seconds, that the slot can be paused.

  #### Declaration

  Swift

      let maxPauseDuration: UInt32?

- `


  ### [manufacturerESAState](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV20manufacturerESAStates6UInt16VSgvp)


  ` Provides a manufacturer-defined value that indicates the state of the ESA.

  #### Declaration

  Swift

      let manufacturerESAState: UInt16?

- `


  ### [nominalPower](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV12nominalPowers5Int64VSgvp)


  ` The expected power that the appliance will use in its current slot.

  #### Declaration

  Swift

      let nominalPower: Int64?

- `


  ### [minPower](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV8minPowers5Int64VSgvp)


  ` The lowest power, in milliwatts, that the appliance is expected to use in its current
  slot. Some appliances, such as battery inverters that can charge and discharge, might have
  a negative value for this field.

  #### Declaration

  Swift

      let minPower: Int64?

- `


  ### [maxPower](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV8maxPowers5Int64VSgvp)


  ` The highest power, in milliwatts, that the appliance is expected to use in its current
  slot. Some appliances, such as battery inverters that can charge and discharge, might have
  a negative value for this field.

  #### Declaration

  Swift

      let maxPower: Int64?

- `


  ### [nominalEnergy](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV07nominalF0s5Int64VSgvp)


  ` The amount of energy that the appliance is expected to use or produce in its current slot.

  #### Declaration

  Swift

      let nominalEnergy: Int64?

- `


  ### [costs](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV5costsSayAE04CostJ0VGSgvp)


  ` The current estimated cost of operating the appliance.

  #### Declaration

  Swift

      let costs: [https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait.html.https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/CostStruct.html]?

- `


  ### [minPowerAdjustment](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV18minPowerAdjustments5Int64VSgvp)


  ` The minimum power adjustment, in milliwatts, that the ESA can be requested to use.

  #### Declaration

  Swift

      let minPowerAdjustment: Int64?

- `


  ### [maxPowerAdjustment](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV18maxPowerAdjustments5Int64VSgvp)


  ` The maximum power adjustment, in milliwatts, that the ESA can be requested to use.

  #### Declaration

  Swift

      let maxPowerAdjustment: Int64?

- `


  ### [minDurationAdjustment](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV21minDurationAdjustments6UInt32VSgvp)


  ` The minimum time, in seconds, to which the slot's usage can be shortened.

  #### Declaration

  Swift

      let minDurationAdjustment: UInt32?

- `


  ### [maxDurationAdjustment](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV21maxDurationAdjustments6UInt32VSgvp)


  ` The maximum duration, in seconds, to which the slot's usage can be extended.

  #### Declaration

  Swift

      let maxDurationAdjustment: UInt32?

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeTypes/Enums/Matter/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV7decoderAG0aB3SDK0H7DecoderV_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/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV6encode4withy0aB3SDK0H7EncoderC_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/DeviceEnergyManagementTrait/SlotStruct#/s:15GoogleHomeTypes6MatterO27DeviceEnergyManagementTraitV10SlotStructV11structField2id0aB3SDK0L0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

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