Macros§
- doc
- Construct a bson::Document value.
Structs§
- Client
- This is the main entry point for the synchronous API. A
Client
is used to connect to a MongoDB cluster. By default, it will monitor the topology of the cluster, keeping track of any changes, such as servers being added or removed. - Client
Options - Contains the options that can be used to create a new
Client
. - Collection
Collection
is the client-side abstraction of a MongoDB Collection. It can be used to perform collection-level operations such as CRUD operations. ACollection
can be obtained through aDatabase
by calling eitherDatabase::collection
orDatabase::collection_with_options
.- Cursor
- A
Cursor
streams the result of a query. When a query is made, aCursor
will be returned with the first batch of results from the server; the documents will be returned as theCursor
is iterated. When the batch is exhausted and if there are more results, theCursor
will fetch the next batch of documents, and so forth until the results are exhausted. Note that because of this batching, additional network I/O may occur on any given call toCursor::next
. Because of this, aCursor
iterates overResult<Document>
items rather than simplyDocument
items. - Database
Database
is the client-side abstraction of a MongoDB database. It can be used to perform database-level operations or to obtain handles to specific collections within the database. ADatabase
can only be obtained through aClient
by calling eitherClient::database
orClient::database_with_options
.- Delete
Options - Specifies the options to a
Collection::delete_one
orCollection::delete_many
operation. - Delete
Result - The result of a
Collection::delete_one
orCollection::delete_many
operation. - Document
- A BSON document represented as an associative HashMap with insertion ordering.
- Find
OneOptions - Specifies the options to a
Collection::find_one
operation. - Find
Options - Specifies the options to a
Collection::find
operation. - Insert
Many Result - The result of a
Collection::insert_many
operation. - Insert
OneOptions - Specifies the options to a
Collection::insert_one
operation. - Insert
OneResult - The result of a
Collection::insert_one
operation. - QAMongo
Client - Update
Options - Specifies the options to a
Collection::update_one
orCollection::update_many
operation. - Update
Result - The result of a
Collection::update_one
orCollection::update_many
operation.
Enums§
- Bson
- Possible BSON value types.
- Update
Modifications - Enum modeling the modifications to apply during an update. For details, see the official MongoDB documentation
Type Aliases§
- Result
- The result type for all methods that can return an error in the
mongodb
crate.