Struct mongors::database::DatabaseInner [−][src]
pub struct DatabaseInner { pub name: String, pub client: MongoClient, pub read_preference: ReadPreference, pub read_concern: ReadConcern, pub write_concern: WriteConcern, }
Fields
name: String
The database name.
client: MongoClient
A reference to the client that spawned this database.
read_preference: ReadPreference
Indicates how a server should be selected for read operations.
read_concern: ReadConcern
The readConcern query option for replica sets and replica set shards determines which data to return from a query.
write_concern: WriteConcern
Describes the guarantees provided by MongoDB when reporting the success of a write operation.
Auto Trait Implementations
impl Send for DatabaseInner
impl Send for DatabaseInner
impl Sync for DatabaseInner
impl Sync for DatabaseInner