public enum DataDecodingStrategy
Enum representing the various strategies for decoding
Datas from BSON.
As per the BSON specification, the default strategy is to decode
Datas from BSON binary types with the generic
Datas by deferring to their default decoding implementation.
Note: The default decoding implementation attempts to decode the
[UInt8], but because BSON does not support integer types other
Int64, it actually decodes from an
[Int32]stored in BSON. This strategy paired with its corresponding encoding strategy results in an inefficient storage of the
Datas stored as base64 encoded strings.
Datas using the provided closure.
case custom((_ decoder: Decoder) throws -> Data)