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
mongodbcrate. The inner
ErrorKindis wrapped in an
Arcto allow the errors to be cloned.
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
Noneto indicate the default level. Higher
levelindicates more compression (and slower). Requires
zstd-compressionfeature flag to use
zlib-compressionfeature flag to use
snappy-compressionfeature 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