Data

  • Contextual Meta Data.

    Contextual information indexed by a key identifier with a value tagged with a type to aid the preview of such information by other services.

      // Example
      var contextMeta: ContextualMetadata = [
           "order-number": .text(value: "O2016-10-23443", title: "Order No."),
           "part-ref":     .text(value: "SKU-10234", title: "Ref"),
           "referral":     .email(value: "joe@example.com", title: "E-mail")
      ]
    

    Declaration

    Swift

    public typealias ContextualMetadata = [String: ContextMetadataItem]
  • Defines an alias for a data payload

    Declaration

    Swift

    public typealias DataPayload = [String: Encodable]