SwiftstructCoreTransferable
CodableRepresentation
struct CoreTransferable.CodableRepresentation
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
Members 8
- func
static _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.CodableRepresentation<A, B, C>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs - field
let contentType: UniformTypeIdentifiers.UTType - field
let exporting: @Sendable (A) throws -> Foundation.Data - field
let importing: @Sendable (Foundation.Data) throws -> A - init
init(for: A.Type, contentType: UniformTypeIdentifiers.UTType, encoder: B, decoder: C) -> CoreTransferable.CodableRepresentation<A, B, C> - init
init< where B == Foundation.JSONEncoder, C == Foundation.JSONDecoder>(for: A.Type, contentType: UniformTypeIdentifiers.UTType) -> CoreTransferable.CodableRepresentation<A, Foundation.JSONEncoder, Foundation.JSONDecoder> - typealias
typealias Body = Swift.Never - typealias
typealias Item = A
Header
struct CodableRepresentation<A, B, C> where A: CoreTransferable.Transferable, A: Swift.Decodable, A: Swift.Encodable, B: Combine.TopLevelEncoder, C: Combine.TopLevelDecoder, B.Output == Foundation.Data, C.Input == Foundation.Data { let contentType: UniformTypeIdentifiers.UTType let exporting: @Sendable (_: A) throws -> Foundation.Data let importing: @Sendable (_: Foundation.Data) throws -> A init(for: A.Type, contentType: UniformTypeIdentifiers.UTType, encoder: B, decoder: C) init(for: A.Type, contentType: UniformTypeIdentifiers.UTType) where B == Foundation.JSONEncoder, C == Foundation.JSONDecoder static func _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.CodableRepresentation<A, B, C>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs }