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