ContentCodec

public protocol ContentCodec : Hashable

Undocumented

  • T

    Undocumented

    Declaration

    Swift

    associatedtype T
  • Undocumented

    Declaration

    Swift

    var contentType: ContentTypeID { get }
  • Undocumented

    Declaration

    Swift

    func encode(content: T) throws -> EncodedContent
  • Undocumented

    Declaration

    Swift

    func decode(content: EncodedContent) throws -> T
  • Undocumented

    Declaration

    Swift

    func fallback(content: T) throws -> String?
  • Undocumented

    Declaration

    Swift

    func shouldPush(content: T) throws -> Bool
  • ==(_:_:) Extension method

    Declaration

    Swift

    static func == (lhs: Self, rhs: Self) -> Bool
  • id Extension method

    Undocumented

    Declaration

    Swift

    var id: String { get }
  • hash(into:) Extension method

    Declaration

    Swift

    func hash(into hasher: inout Hasher)
  • description Extension method

    Undocumented

    Declaration

    Swift

    var description: String { get }