/// Inserts `doc` 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 `doc` 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 ` doc ` 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_one(
        &self,
        doc: impl Borrow<T>,
        options: impl Into<Option<InsertOneOptions>>,
    ) -> Result<InsertOneResult> {
        RUNTIME.block_on(
            self.async_collection
                .insert_one(doc.borrow(), options.into()),
        )
    }
pub fn insert_one ( & self , doc : impl Borrow < T > , options : impl Into < Option < InsertOneOptions > > , ) -> Result < InsertOneResult > { RUNTIME . block_on ( self . async_collection . insert_one ( doc . borrow ( ) , options . into ( ) ) , ) }
Inserts `doc` into the collection.
Inserts ` doc ` into the collection .
&self
doc
impl Borrow<T>
options
impl Into<Option<InsertOneOptions>>