CodingStrategyProvider

public protocol CodingStrategyProvider

Protocol indicating a set of options can be used to configure BSONEncoder and BSONDecoder.

  • Specifies the strategy to use when converting Dates between their BSON representations and their representations in (non Document) Codable types.

    Declaration

    Swift

    var dateCodingStrategy: DateCodingStrategy? { get }
  • Specifies the strategy to use when converting UUIDs between their BSON representations and their representations in (non Document) Codable types.

    Declaration

    Swift

    var uuidCodingStrategy: UUIDCodingStrategy? { get }
  • Specifies the strategy to use when converting Datas between their BSON representations and their representations in (non Document) Codable types.

    Declaration

    Swift

    var dataCodingStrategy: DataCodingStrategy? { get }