Result types that
Contains all of the types needed to specify options to MongoDB operations.
Construct a bson::Document value.
A BSON document represented as an associative HashMap with insertion ordering.
An error that can occur in the
mongodb crate. The inner
ErrorKind is wrapped in an
Arc to allow the errors to be
Specifies the fields and options for an index. For more information, see the documentation.
A wrapper around raw 12-byte ObjectId representations.
Enum representing supported compressor algorithms. Used for compressing and decompressing messages sent to and read from the server. For compressors that take a
None to indicate the default level.
level indicates more compression (and slower).
zstd-compression feature flag to use
zlib-compression feature flag to use
Zlib compressor, and
snappy-compression feature flag to use
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.
Deserializes a hex string from an ObjectId.
The result type for all methods that can return an error in the