SwiftstructCoreTransferable

struct CoreTransferable.CodableRepresentation

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 8

  1. funcstatic _decomposedTransferRepresentation(_: CoreTransferable._TransferRepresentationValue<CoreTransferable.CodableRepresentation<A, B, C>>, inputs: CoreTransferable._TransferRepresentationInputs) -> CoreTransferable._TransferRepresentationOutputs
  2. fieldlet contentType: UniformTypeIdentifiers.UTType
  3. fieldlet exporting: @Sendable (A) throws -> Foundation.Data
  4. fieldlet importing: @Sendable (Foundation.Data) throws -> A
  5. initinit(for: A.Type, contentType: UniformTypeIdentifiers.UTType, encoder: B, decoder: C) -> CoreTransferable.CodableRepresentation<A, B, C>
  6. initinit< where B == Foundation.JSONEncoder, C == Foundation.JSONDecoder>(for: A.Type, contentType: UniformTypeIdentifiers.UTType) -> CoreTransferable.CodableRepresentation<A, Foundation.JSONEncoder, Foundation.JSONDecoder>
  7. typealiastypealias Body = Swift.Never
  8. typealiastypealias Item = A
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
}