pub struct Db {
    pub client: Client,
    pub database: Database,
    pub coll_coll: Collection<Coll>,
}
Expand description

Client to interact with the Db database.

Fields

client: Clientdatabase: Databasecoll_coll: Collection<Coll>

Handle to the Coll collection

Trait Implementations

The database’s name.

Initializer funtion of the database.

Method that sends a ping command to the database.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.