SuggestionProviderConstraints
public struct SuggestionProviderConstraints
extension SuggestionProviderConstraints: Equatable, Hashable
Some providers manage multiple suggestion subtypes. Queries, ingests, and other operations on those providers must be constrained to a desired subtype.
-
Exposure
provider - For each desired exposure suggestion type, this should contain the value of thesuggestion_type
field of its remote settings record(s).Declaration
Swift
public var exposureSuggestionTypes: [String]?
-
Which strategy should we use for the AMP queries? Use None for the default strategy.
Declaration
Swift
public var ampAlternativeMatching: AmpMatchingStrategy?
-
Declaration
Swift
public init( /** * `Exposure` provider - For each desired exposure suggestion type, this * should contain the value of the `suggestion_type` field of its remote * settings record(s). */exposureSuggestionTypes: [String]? = nil, /** * Which strategy should we use for the AMP queries? * Use None for the default strategy. */ampAlternativeMatching: AmpMatchingStrategy? = nil)
-
Declaration
Swift
public static func == (lhs: SuggestionProviderConstraints, rhs: SuggestionProviderConstraints) -> Bool
-
Declaration
Swift
public func hash(into hasher: inout Hasher)