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
Date
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.Declaration
Swift
var dateCodingStrategy: DateCodingStrategy? { get }
-
Specifies the strategy to use when converting
UUID
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.Declaration
Swift
var uuidCodingStrategy: UUIDCodingStrategy? { get }
-
Specifies the strategy to use when converting
Data
s between their BSON representations and their representations in (nonBSONDocument
)Codable
types.Declaration
Swift
var dataCodingStrategy: DataCodingStrategy? { get }