CollectionDetails

public struct CollectionDetails : Codable, Equatable

A collection for storing documents.

  • The unique identifier of the collection.

    Declaration

    Swift

    public var collectionID: String?
  • The name of the collection.

    Declaration

    Swift

    public var name: String
  • A description of the collection.

    Declaration

    Swift

    public var description: String?
  • The date that the collection was created.

    Declaration

    Swift

    public var created: Date?
  • The language of the collection.

    Declaration

    Swift

    public var language: String?
  • An array of enrichments that are applied to this collection.

    Declaration

    Swift

    public var enrichments: [CollectionEnrichment]?
  • Initialize a CollectionDetails with member variables.

    Declaration

    Swift

    public init(
        name: String,
        description: String? = nil,
        language: String? = nil,
        enrichments: [CollectionEnrichment]? = nil
    )

    Parameters

    name

    The name of the collection.

    description

    A description of the collection.

    language

    The language of the collection.

    enrichments

    An array of enrichments that are applied to this collection.

    Return Value

    An initialized CollectionDetails.