SwiftstructCoreTransferable
DataRepresentation
struct CoreTransferable.DataRepresentation
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 9
- func
static _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.DataRepresentation<A>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs - field
let contentType: UniformTypeIdentifiers.UTType - field
let exporting: (@Sendable (A) async throws -> Foundation.Data)? - field
let importing: (@Sendable (Foundation.Data) async throws -> A)? - init
init(contentType: UniformTypeIdentifiers.UTType, exporting: @Sendable (A) async throws -> Foundation.Data, importing: @Sendable (Foundation.Data) async throws -> A) -> CoreTransferable.DataRepresentation<A> - init
init(exportedContentType: UniformTypeIdentifiers.UTType, exporting: @Sendable (A) async throws -> Foundation.Data) -> CoreTransferable.DataRepresentation<A> - init
init(importedContentType: UniformTypeIdentifiers.UTType, importing: @Sendable (Foundation.Data) async throws -> A) -> CoreTransferable.DataRepresentation<A> - typealias
typealias Body = Swift.Never - typealias
typealias Item = A
Header
struct DataRepresentation<A> where A: CoreTransferable.Transferable { let contentType: UniformTypeIdentifiers.UTType let exporting: (@Sendable (_: A) async throws -> Foundation.Data)? let importing: (@Sendable (_: Foundation.Data) async throws -> A)? init(contentType: UniformTypeIdentifiers.UTType, exporting: @escaping @Sendable (_: A) async throws -> Foundation.Data, importing: @escaping @Sendable (_: Foundation.Data) async throws -> A) init(exportedContentType: UniformTypeIdentifiers.UTType, exporting: @escaping @Sendable (_: A) async throws -> Foundation.Data) init(importedContentType: UniformTypeIdentifiers.UTType, importing: @escaping @Sendable (_: Foundation.Data) async throws -> A) static func _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.DataRepresentation<A>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs }