Instance Subscriptswift-bson 0.3.1BSONDecoding->BSONABI
subscript(_:)
BSON.DocumentDecoder.swift:122subscript(key: CodingKey) -> BSON.FieldDecoder<CodingKey>? { get }
subscript(key: CodingKey) -> BSON.FieldDecoder<CodingKey>? { get }
s7BSONABI4BSONO12BSONDecodingE15DocumentDecoderVyAcDE05FieldE0Vy_xGSgxcip
What are these?1PLXH
where CodingKey:Hashable, CodingKey:RawRepresentable, CodingKey:Sendable, CodingKey.RawValue == String
import BSONDecoding
import BSONABI
Models the BSON type system and the binary interface of the BSON serialization format.
@frozen struct DocumentDecoder<CodingKey> where CodingKey : Hashable, CodingKey : RawRepresentable, CodingKey : Sendable, CodingKey.RawValue == String
A thin wrapper around a native Swift dictionary providing an efficient decoding interface for a Document
.
@frozen enum BSON
The namespace for all BSON types.
@frozen struct FieldDecoder<Key> where Key : Sendable
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
protocol RawRepresentable<RawValue>
A type that can be converted to and from an associated raw value.
protocol Sendable
@frozen struct String
A Unicode string value that is a collection of characters.
init(parsing bson: borrowing BSON.Document) throws
Attempts to create a decoder with typed coding keys from this document.
init(parsing bson: borrowing BSON.AnyValue) throws
Attempts to load a document decoder from the given variant.
subscript(key: CodingKey) -> BSON.OptionalDecoder<CodingKey> { get }
func contains(_ key: CodingKey) -> Bool
func makeIterator() -> Iterator
consuming func single() throws -> BSON.FieldDecoder<CodingKey>
@frozen struct Iterator