Modules

Macros

Construct a bson::Document value.

Structs

A BSON document represented as an associative HashMap with insertion ordering.

Specifies the options to a Collection::find operation.

Specifies the fields and options for an index. For more information, see the documentation.

A wrapper around raw 12-byte ObjectId representations.

Enums

Enum representing supported compressor algorithms. Used for compressing and decompressing messages sent to and read from the server. For compressors that take a level, use None to indicate the default level. Higher level indicates more compression (and slower). Requires zstd-compression feature flag to use Zstd compressor, zlib-compression feature flag to use Zlib compressor, and snappy-compression feature flag to use Snappy Compressor.

Traits

A data structure that can be deserialized from any data format supported by Serde.

A data structure that can be serialized into any data format supported by Serde.

Functions

Encode a T Serializable into a BSON Value.

Type Definitions

The result type for all methods that can return an error in the mongodb crate.

Derive Macros