wither 0.9.0

An ODM for MongoDB built upon the mongo rust driver.
use crate::bson::Document;

/// A placeholder for the standard `IndexModel`, which is currently not present in the mongodb
/// driver.
#[derive(Debug, Clone, PartialEq)]
#[non_exhaustive]
pub struct IndexModel {
    /// The fields to index, along with their sort order.
    pub keys: Document,
    /// Extra options to use when creating the index.
    pub options: Option<Document>,
}

impl IndexModel {
    /// Construct a new instance.
    pub fn new(keys: Document, options: Option<Document>) -> Self {
        Self { keys, options }
    }
}