/// Inserts the documents in `docs` into the collection.
///
/// This operation will retry once upon failure if the connection and encountered error support
/// retryability. See the documentation
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
/// retryable writes.
Inserts the documents in `docs` into the collection.
This operation will retry once upon failure if the connection and encountered error support
retryability. See the documentation
[here] for more information on
retryable writes.
Inserts the documents in ` docs ` into the collection . This operation will retry once upon failure if the connection and encountered error support retryability . See the documentation [ here ] for more information on retryable writes .
pub fn insert_many(
        &self,
        docs: impl IntoIterator<Item = impl Borrow<T>>,
        options: impl Into<Option<InsertManyOptions>>,
    ) -> Result<InsertManyResult> {
        RUNTIME.block_on(self.async_collection.insert_many(docs, options.into()))
    }
pub fn insert_many ( & self , docs : impl IntoIterator < Item = impl Borrow < T > > , options : impl Into < Option < InsertManyOptions > > , ) -> Result < InsertManyResult > { RUNTIME . block_on ( self . async_collection . insert_many ( docs , options . into ( ) ) ) }
Inserts the documents in `docs` into the collection.
Inserts the documents in ` docs ` into the collection .
&self
docs
impl IntoIterator<Item = impl Borrow<T>>
options
impl Into<Option<InsertManyOptions>>