    struct SolarTime

    extension SolarTime : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Copyable, Decodable, Encodable, Equatable, Equatable, Escapable, Hashable, Hashable, Sendable, Sendable, SendableMetatype, SendableMetatype, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/StructDataRepresentable.html

The time of a daily solar event such as sunrise, noon, and sunset.
- `


  ### [type](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV4typeAC0dE4TypeOvp)


  ` Indicates the type of solar event, either sunrise or sunset.

  #### Declaration

  Swift

      let type: SolarTime.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime/SolarTimeType.html

- `


  ### [offset](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV6offsets8DurationVvp)


  ` Represents seconds before (negative value) or after the solar time.

  #### Declaration

  Swift

      let offset: Duration

- `


  ### [init(type:offset:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV4type6offsetA2C0dE4TypeO_s8DurationVtcfc)


  ` Initializes `SolarTime` with the type and offset.

  #### Declaration

  Swift

      init(type: SolarTime.https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime/SolarTimeType.html, offset: Duration = .seconds(0))

  #### Parameters

  |---|---|
  | ` type ` | The type of solar event, either sunrise or sunset. |
  | ` offset ` | The time offset from the solar event. |

- `


  ### [init(decoder:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV7decoderAcA12TraitDecoderV_tKcfc)


  ` Initializes `SolarTime` with the trait decoder.

  #### Declaration

  Swift

      init(decoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/TraitDecoder.html) throws

  #### Parameters

  |---|---|
  | ` decoder ` | The trait decoder to decode the solar time. |

- `


  ### [SolarTimeType](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime/SolarTimeType.html)


  ` Undocumented

  #### Declaration

  Swift

      enum SolarTimeType

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime.html.SolarTimeType : https://developers.home.google.com/reference/swift/GoogleHomeSDK/GoogleHomeSDK.html#/s:13GoogleHomeSDK15AutomationValueP, Decodable, Encodable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum.html, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Enum8.html, Equatable, Hashable, RawRepresentable, Sendable, SendableMetatype

- `


  ### [encode(with:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV6encode4withyAA12TraitEncoderC_tKF)


  ` Encodes `SolarTime` to the trait encoder.

  #### Declaration

  Swift

      func encode(with encoder: https://developers.home.google.com/reference/swift/GoogleHomeSDK/Classes/TraitEncoder.html) throws

- `


  ### [StructFields](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime/StructFields.html)


  ` Undocumented

  #### Declaration

  Swift

      enum StructFields

      extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime.html.StructFields : Equatable, https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html, Hashable, RawRepresentable, Sendable, SendableMetatype

- `


  ### [structField(id:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV11structField2idAA0G0_pSgs6UInt32V_tFZ)


  ` Returns the field corresponding to the given field ID.

  #### Declaration

  Swift

      static func structField(id: UInt32) -> (any https://developers.home.google.com/reference/swift/GoogleHomeSDK/Protocols/Field.html)?

- `


  ### [init(from:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/SolarTime#/s:13GoogleHomeSDK9SolarTimeV4fromACs7Decoder_p_tKcfc)


  ` Creates a new instance by decoding from the given decoder.

  This initializer throws an error if reading from the decoder fails, or
  if the data read is corrupted or otherwise invalid.

  #### Declaration

  Swift

      init(from decoder: any Decoder) throws