/// Creates the given index on this collection.
Creates the given index on this collection.
Creates the given index on this collection .
pub fn create_index(
        &self,
        index: IndexModel,
        options: impl Into<Option<CreateIndexOptions>>,
    ) -> Result<CreateIndexResult> {
        RUNTIME.block_on(self.async_collection.create_index(index, options))
    }
pub fn create_index ( & self , index : IndexModel , options : impl Into < Option < CreateIndexOptions > > , ) -> Result < CreateIndexResult > { RUNTIME . block_on ( self . async_collection . create_index ( index , options ) ) }
Creates the given index on this collection.
Creates the given index on this collection .
&self
index
IndexModel
options
impl Into<Option<CreateIndexOptions>>