/// Creates the given index on this collection using the provided `ClientSession`.
Creates the given index on this collection using the provided `ClientSession`.
Creates the given index on this collection using the provided ` ClientSession ` .
pub fn create_index_with_session(
        &self,
        index: IndexModel,
        options: impl Into<Option<CreateIndexOptions>>,
        session: &mut ClientSession,
    ) -> Result<CreateIndexResult> {
        RUNTIME.block_on(self.async_collection.create_index_with_session(
            index,
            options,
            &mut session.async_client_session,
        ))
    }
pub fn create_index_with_session ( & self , index : IndexModel , options : impl Into < Option < CreateIndexOptions > > , session : & mut ClientSession , ) -> Result < CreateIndexResult > { RUNTIME . block_on ( self . async_collection . create_index_with_session ( index , options , & mut session . async_client_session , ) ) }
Creates the given index on this collection using the provided `ClientSession`.
Creates the given index on this collection using the provided ` ClientSession ` .
&self
index
IndexModel
options
impl Into<Option<CreateIndexOptions>>
session
&mut ClientSession