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
FileWithMetadatawith member variables.Declaration
Swift
public init( data: Data, filename: String? = nil, contentType: String? = nil )Parameters
dataThe data / content for the file.
filenameThe filename of the file.
contentTypeThe content type of the file.
Return Value
An initialized
FileWithMetadata.
View on GitHub
FileWithMetadata Structure Reference