CollectionEnrichment

public struct CollectionEnrichment : Codable, Equatable

An object describing an Enrichment for a collection.

  • The unique identifier of this enrichment.

    Declaration

    Swift

    public var enrichmentID: String?
  • An array of field names that the enrichment is applied to. If you apply an enrichment to a field from a JSON file, the data is converted to an array automatically, even if the field contains a single value.

    Declaration

    Swift

    public var fields: [String]?
  • Initialize a CollectionEnrichment with member variables.

    Declaration

    Swift

    public init(
        enrichmentID: String? = nil,
        fields: [String]? = nil
    )

    Parameters

    enrichmentID

    The unique identifier of this enrichment.

    fields

    An array of field names that the enrichment is applied to. If you apply an enrichment to a field from a JSON file, the data is converted to an array automatically, even if the field contains a single value.

    Return Value

    An initialized CollectionEnrichment.