Instance Methodswift-mongodb 0.29.3MongoBuiltins->Mongo
encode(to:)
Mongo.EmptyDocument.swift:24func encode(to _: inout BSON.DocumentEncoder<BSON.Key>)
func encode(to _: inout BSON.DocumentEncoder<BSON.Key>)
s5MongoAAO0A8BuiltinsE13EmptyDocumentV6encode2toy7BSONABI4BSONO12BSONEncodingE0D7EncoderVy_AJ3KeyVGz_tF
What are these?FMXG
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoBuiltins
@frozen struct EmptyDocument
A type that can be used to expect an empty document. Decoding from a non-empty document (or a value that is not a document at all) will throw an error.
enum Mongo
@frozen enum BSON
The namespace for all BSON types.
@frozen struct DocumentEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String
@frozen struct Key
A BSON field key. This type wraps a rawValue
that is guaranteed to never contain null bytes. (Null bytes in a BSON field key can be exploited to perform SQL injection.)
init(bson: consuming BSON.KeyspaceDecoder<BSON.Key>) throws
init(dictionaryLiteral _: (Never, Never)...)