Attachment

public struct Attachment : Codable

The schema for .data .attachments

  • The file name

    Declaration

    Swift

    public var name: String?
  • The file size in bytes

    Declaration

    Swift

    public var size: Int?
  • The file mime-type

    Declaration

    Swift

    public var type: String
  • The file modification-time

    Declaration

    Swift

    public var mtime: Date?
  • The file content hash for verifying integrity (SHA512)

    Declaration

    Swift

    public var hash: Data?
  • An optional index (used to clarify relationship to Signal envelope attachment information in .syncResponses)

    Declaration

    Swift

    public var index: UInt?