[−][src]Module mongodb::options
Contains all of the types needed to specify options to MongoDB operations.
Most of the options structs in this module use the
typed-builder crate to derive a type-safe builder
API on them. For example, to create an instance of
FindOptions with only limit and batch_size set, the builder
API can be used as follows:
Modules
| auth | Contains the types needed to specify the auth configuration for a
|
Structs
| AggregateOptions | Specifies the options to a |
| ClientOptions | Contains the options that can be used to create a new |
| Collation | A collation configuration. See the official MongoDB documentation for more information on each of the fields. |
| CollectionOptions | These are the valid options for creating a |
| CountOptions | Specifies the options to a
|
| CreateCollectionOptions | These are the valid options for creating a collection with
|
| DatabaseOptions | These are the valid options for creating a |
| DeleteOptions | Specifies the options to a
|
| DistinctOptions | Specifies the options to a |
| DropCollectionOptions | Specifies the options to a |
| DropDatabaseOptions | Specifies the options to a |
| EstimatedDocumentCountOptions | Specifies the options to a
|
| FindOneAndDeleteOptions | Specifies the options to a
|
| FindOneAndReplaceOptions | Specifies the options to a
|
| FindOneAndUpdateOptions | Specifies the options to a
|
| FindOneOptions | Specifies the options to a |
| FindOptions | Specifies the options to a |
| IndexModel | Specifies an index to create. |
| InsertManyOptions | Specifies the options to a
|
| InsertOneOptions | Specifies the options to a
|
| ListCollectionsOptions | Specifies the options to a
|
| ReplaceOptions | Specifies the options to a
|
| StreamAddress | A hostname:port address pair. |
| TlsOptions | Specifies the TLS configuration that the |
| UpdateOptions | Specifies the options to a
|
| WriteConcern | Specifies the level of acknowledgement requested from the server for write operations. |
Enums
| Acknowledgment | The type of the |
| CursorType | Specifies the type of cursor to return from a find operation. |
| Hint | Specifies the index to use for an operation. |
| ReadConcern | Specifies the consistency and isolation properties of read operations from replica sets and replica set shards. |
| ReadPreference | Specifies how the driver should route a read operation to members of a replica set. |
| ReturnDocument | Specifies whether a
|
| SelectionCriteria | Describes which servers are suitable for a given operation. |
| Tls | Specifies whether TLS configuration should be used with the operations that the
|
| UpdateModifications | Enum modeling the modifications to apply during an update. For details, see the official MongoDB documentation |
| ValidationAction | Specifies whether the database should return an error or simply raise a warning if inserted documents do not pass the validation. |
| ValidationLevel | Specifies how strictly the database should apply validation rules to existing documents during an update. |
Type Definitions
| Predicate | A predicate used to filter servers that are considered suitable. |
| TagSet | A read preference tag set. See the documentation here for more details. |