pub fn create_collection_with_session(
        &self,
        name: impl AsRef<str>,
        options: impl Into<Option<CreateCollectionOptions>>,
        session: &mut ClientSession,
    ) -> Result<()> {
        RUNTIME.block_on(self.async_database.create_collection_with_session(
            name.as_ref(),
            options.into(),
            &mut session.async_client_session,
        ))
    }
/// Creates a new collection in the database with the given `name` and `options` using the
/// provided `ClientSession`.
///
/// Note that MongoDB creates collections implicitly when data is inserted, so this method is
/// not needed if no special options are required.


Note that MongoDB creates collections implicitly when data is inserted, so this method is
not needed if no special options are required.
Note that MongoDB creates collections implicitly when data is inserted so this method is not needed if no special options are required .
pub fn create_collection_with_session(
        &self,
        name: impl AsRef<str>,
        options: impl Into<Option<CreateCollectionOptions>>,
        session: &mut ClientSession,
    ) -> Result<()> {
        RUNTIME.block_on(self.async_database.create_collection_with_session(
            name.as_ref(),
            options.into(),
            &mut session.async_client_session,
        ))
    }
pub fn create_collection_with_session ( & self , name : impl AsRef < str > , options : impl Into < Option < CreateCollectionOptions > > , session : & mut ClientSession , ) -> Result < ( ) > { RUNTIME . block_on ( self . async_database . create_collection_with_session ( name . as_ref ( ) , options . into ( ) , & mut session . async_client_session , ) ) }
Creates a new collection in the database with the given `name` and `options` using the
provided `ClientSession`.
Creates a new collection in the database with the given ` name ` and ` options ` using the provided ` ClientSession ` .
&self
name
impl AsRef<str>
options
impl Into<Option<CreateCollectionOptions>>
session
&mut ClientSession
&self
name
impl AsRef<str>
options
impl Into<Option<CreateCollectionOptions>>
session
&mut ClientSession