InlineDataPart
public struct InlineDataPart : PartA data part that is provided inline in requests.
Data provided as an inline data part is encoded as base64 and included directly (inline) in the
request. For large files, see FileDataPart which references content by URI instead of
including the data in the request.
-
The data provided in the inline data part.
Declaration
Swift
public var data: Data { get } -
The IANA standard MIME type of the data.
Declaration
Swift
public var mimeType: String { get } -
Declaration
Swift
public var isThought: Bool { get } -
Creates an inline data part from data and a MIME type.
Declaration
Swift
public init(data: Data, mimeType: String)Parameters
dataThe data representation of an image, video, audio or document; see input files and requirements for supported media types.
mimeTypeThe IANA standard MIME type of the data, for example,
"image/jpeg"or"video/mp4"; see input files and requirements for supported values.