Structureswift-mongodb 0.29.3MongoBuiltins->Mongo
SuperlativeSortDocument
Mongo.Accumulator.SuperlativeSortDocument.swift:6@frozen struct SuperlativeSortDocument<Count>
@frozen struct SuperlativeSortDocument<Count>
s5MongoAAO0A8BuiltinsE11AccumulatorV23SuperlativeSortDocumentV
What are these?3257R
import Mongo
A single-type module that declares the Mongo
namespace.
import MongoBuiltins
@frozen struct Accumulator
enum Mongo
init(_ bson: BSON.Document)
var bson: BSON.Document
subscript(key: Superlative) -> SuperlativeDocument? { get set }
subscript(key: SuperlativeSort) -> SuperlativeSortDocument<N>? { get set }
subscript(key: SuperlativeSort) -> SuperlativeSortDocument<Never>? { get set }
subscript(key: Count) -> Mongo.EmptyDocument? { get set }
subscript<Encodable>(key: Superlative) -> Encodable? where Encodable : BSONEncodable { get set }
subscript<Encodable>(key: Unary) -> Encodable? where Encodable : BSONEncodable { get set }
@frozen enum Count
@frozen enum N
@frozen enum Superlative
@frozen struct SuperlativeDocument
@frozen enum SuperlativeSort
@frozen enum Unary
protocol BSONDecodable
A type that can be decoded from a BSON variant value backed by some type of storage not particular to the decoded type.
protocol BSONEncodable
A type that can be encoded to a BSON variant value.
protocol BSONRepresentable<BSONRepresentation>
protocol EncodableDocument : BSONRepresentable, BSONDecodable, BSONEncodable where Self.BSONRepresentation == BSON.Document
An EncodableDocument
is nothing more than a type that supports an init(with:)
builder API.
protocol Sendable
init(_ bson: BSON.Document)
var bson: BSON.Document
subscript<Encodable>(key: Output) -> Encodable? where Encodable : BSONEncodable { get set }
subscript<CodingKey>(key: Mongo.SortBy, using _: CodingKey.Type = CodingKey.self, yield: (inout Mongo.SortEncoder<CodingKey>) -> ()) -> Void where CodingKey : RawRepresentable, CodingKey.RawValue == String { mutating get }
@frozen enum Output
init()
init(with populate: (inout Self) throws -> ()) rethrows
subscript<Encodable>(key: Mongo.Accumulator.N) -> Encodable? where Encodable : BSONEncodable { get set }