BSONValue
extension BSONValue
Convenience extension to get static bsonType from an instance
-
Default
Decodableimplementation that throws an error if executed with non-BSONDecoder.BSON types’
Deodableconformance currently only works withBSONDecoder, but in the future will be able to work with any decoder (e.g.JSONDecoder).Declaration
Swift
public init(from decoder: Decoder) throws -
Default
Encodableimplementation that throws an error if executed with non-BSONEncoder.BSON types’
Encodableconformance currently only works withBSONEncoder, but in the future will be able to work with any encoder (e.g.JSONEncoder).Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
Install in Dash
BSONValue Extension Reference