Macros§
- doc
- Construct a bson::Document value.
Structs§
- Client
- This is the main entry point for the synchronous API. A
Clientis 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
Collectionis the client-side abstraction of a MongoDB Collection. It can be used to perform collection-level operations such as CRUD operations. ACollectioncan be obtained through aDatabaseby calling eitherDatabase::collectionorDatabase::collection_with_options.- Cursor
- A
Cursorstreams the result of a query. When a query is made, aCursorwill be returned with the first batch of results from the server; the documents will be returned as theCursoris iterated. When the batch is exhausted and if there are more results, theCursorwill 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, aCursoriterates overResult<Document>items rather than simplyDocumentitems. - Database
Databaseis 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. ADatabasecan only be obtained through aClientby calling eitherClient::databaseorClient::database_with_options.- Delete
Options - Specifies the options to a
Collection::delete_oneorCollection::delete_manyoperation. - Delete
Result - The result of a
Collection::delete_oneorCollection::delete_manyoperation. - Document
- A BSON document represented as an associative HashMap with insertion ordering.
- Find
OneOptions - Specifies the options to a
Collection::find_oneoperation. - Find
Options - Specifies the options to a
Collection::findoperation. - Insert
Many Result - The result of a
Collection::insert_manyoperation. - Insert
OneOptions - Specifies the options to a
Collection::insert_oneoperation. - Insert
OneResult - The result of a
Collection::insert_oneoperation. - QAMongo
Client - Update
Options - Specifies the options to a
Collection::update_oneorCollection::update_manyoperation. - Update
Result - The result of a
Collection::update_oneorCollection::update_manyoperation.
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
mongodbcrate.