BSONCoderOptions
public struct BSONCoderOptions : CodingStrategyProvider
Options struct used for configuring the coding strategies on BSONEncoder
and BSONDecoder
.
-
Declaration
Swift
public var dataCodingStrategy: DataCodingStrategy?
-
Declaration
Swift
public var dateCodingStrategy: DateCodingStrategy?
-
Declaration
Swift
public var uuidCodingStrategy: UUIDCodingStrategy?
-
Initializes a new
BSONCoderOptions
.Declaration
Swift
public init( dataCodingStrategy: DataCodingStrategy? = nil, dateCodingStrategy: DateCodingStrategy? = nil, uuidCodingStrategy: UUIDCodingStrategy? = nil )