Convenience extension to get static bsonType from an instance
Decodableimplementation that throws an error if executed with non-
Deodableconformance currently only works with
BSONDecoder, but in the future will be able to work with any decoder (e.g.
public init(from decoder: Decoder) throws
Encodableimplementation that throws an error if executed with non-
Encodableconformance currently only works with
BSONEncoder, but in the future will be able to work with any encoder (e.g.
public func encode(to encoder: Encoder) throws