    struct FilterSpec

    extension https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HistoryController.html.FilterSpec : Sendable, SendableMetatype

Imformation about a single attribute filter and its supported values.
- `


  ### [key](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HistoryController/FilterSpec#/s:13GoogleHomeSDK17HistoryControllerV10FilterSpecV3keySSvp)


  ` The name of the attribute.

  #### Declaration

  Swift

      let key: String

- `


  ### [supportedValues](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HistoryController/FilterSpec#/s:13GoogleHomeSDK17HistoryControllerV10FilterSpecV15supportedValuesShySSGvp)


  ` The set of supported values for the attribute.

  #### Declaration

  Swift

      let supportedValues: Set<String>

- `


  ### [applicableEvent](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HistoryController/FilterSpec#/s:13GoogleHomeSDK17HistoryControllerV10FilterSpecV15applicableEventSSSgvp)


  ` The event type that this filter spec is applicable to, if any.

  #### Declaration

  Swift

      var applicableEvent: String?

- `


  ### [init(key:supportedValues:applicableEvent:)](https://developers.home.google.com/reference/swift/GoogleHomeSDK/Structs/HistoryController/FilterSpec#/s:13GoogleHomeSDK17HistoryControllerV10FilterSpecV3key15supportedValues15applicableEventAESgSSSg_ShySSGAJtcfc)


  ` Initializes a new `FilterSpec`.

  #### Declaration

  Swift

      init?(key: String?, supportedValues: Set<String>, applicableEvent: String? = nil)

  #### Parameters

  |---|---|
  | ` key ` | The name of the attribute. |
  | ` supportedValues ` | The set of supported values for the attribute. |
  | ` applicableEvent ` | The event type that this filter spec is applicable to, if any. |