Structureswift-mongodb 0.29.3MongoDriver->Mongo
Replica
Mongo.ReplicaSetConfiguration.Replica.swift:7@frozen struct Replica@frozen struct Replicaimport MongoA single-type module that declares the Mongo namespace.
import MongoDriverstruct ReplicaSetConfigurationenum Mongoinit(bson: BSON.DocumentDecoder<CodingKey>) throws init(name: String, writeConcernMajorityJournalDefault: Bool = true, members: [Member], version: Int, term: Int?) let members: [Member]let name: Stringlet term: Int?let version: Intlet writeConcernMajorityJournalDefault: Boolfunc encode(to bson: inout BSON.DocumentEncoder<CodingKey>) @frozen struct CitizenA configuration for a citizen member. Citizens always cast at least one vote for primary, and can themselves become primary, based on their priority.
@frozen enum CodingKeystruct Member@frozen struct ResidentA configuration for a resident member. Residents can vote for primary, but cannot become primary. Residents can be hidden and delayed.
@frozen enum Rightsprotocol EquatableA type that can be compared for value equality.
protocol Sendableinit(rights: Rights, votes: Int, tags: OrderedDictionary<BSON.Key, String> = [:]) let rights: Rightslet tags: OrderedDictionary<BSON.Key, String>let votes: Intstatic func != (lhs: Self, rhs: Self) -> Bool Returns a Boolean value indicating whether two values are not equal.