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