Instance Subscriptswift-bson 0.3.1BSONEncoding->BSONABI
subscript(with:)
BSON.Document (ext).swift:22subscript(with key: some RawRepresentable<String>) -> BSON.FieldEncoder { get set }
subscript(with key: some RawRepresentable<String>) -> BSON.FieldEncoder { get set }
s7BSONABI4BSONO8DocumentV12BSONEncodingE4withAC12FieldEncoderVx_tcSYRzSS8RawValueRtzluip
What are these?1J99P
import BSONEncoding
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct Document
The Document
type models the “universal” BSON DSL.
@frozen enum BSON
The namespace for all BSON types.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
@frozen struct String
A Unicode string value that is a collection of characters.
@frozen struct FieldEncoder
A type that can serialize any BSON container element.
init<CodingKey>(_: CodingKey.Type = CodingKey.self, with encode: (inout BSON.DocumentEncoder<CodingKey>) throws -> ()) rethrows where CodingKey : RawRepresentable, CodingKey.RawValue == String
init<Encodable>(encoding fields: some Sequence<(key: BSON.Key, value: Encodable)>) where Encodable : BSONEncodable
init(encoding encodable: some BSONDocumentEncodable)
subscript<CodingKey>(_: CodingKey.Type) -> BSON.DocumentEncoder<CodingKey> where CodingKey : RawRepresentable, CodingKey.RawValue == String { mutating get set }
func encode(to field: inout BSON.FieldEncoder)