FilterSpec

struct FilterSpec
extension HistoryController.FilterSpec : Sendable

Imformation about a single attribute filter and its supported values.

  • key

    The name of the attribute.

    Declaration

    Swift

    let key: String
  • The set of supported values for the attribute.

    Declaration

    Swift

    let supportedValues: Set<String>
  • The event type that this filter spec is applicable to, if any.

    Declaration

    Swift

    var applicableEvent: String?
  • 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.