Crate mungos

source ·

Re-exports

pub use mongodb;
pub use mongodb::bson;

Modules

Contains the Error and Result types that mongodb uses.
Contains all of the types needed to specify options to MongoDB operations.

Macros

Construct a bson::Document value.

Structs

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 cloned.
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

Deserializes a hex string from an ObjectId.
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