MultipartAttachment
public struct MultipartAttachment : Equatable
Struct representing a multipart attachment to a multipart form data request
-
The name for the attachment
Declaration
Swift
public let name: String
-
The file name of the attachment
Declaration
Swift
public let fileName: String?
-
The url of the attachment
Declaration
Swift
public let url: URL?
-
The
Data
representation of the attachmentDeclaration
Swift
public let data: Data?
-
The mime type of the attachment as a
String
Declaration
Swift
public var mimeType: String?
-
Undocumented
Declaration
Swift
public init(name: String, fileName: String?, url: URL?, data: Data?, mimeType: String?)