FileWithMetadata
public struct FileWithMetadata : Codable, Equatable
A file with its associated metadata.
-
The data / content for the file.
Declaration
Swift
public var data: Data
-
The filename of the file.
Declaration
Swift
public var filename: String?
-
The content type of the file.
Declaration
Swift
public var contentType: String?
-
Initialize a
FileWithMetadata
with member variables.Declaration
Swift
public init( data: Data, filename: String? = nil, contentType: String? = nil )
Parameters
data
The data / content for the file.
filename
The filename of the file.
contentType
The content type of the file.
Return Value
An initialized
FileWithMetadata
.