/// Deletes up to one document found matching `query` using the provided `ClientSession`.
///
/// 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.
Deletes up to one document found matching `query` using the provided `ClientSession`.
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.
Deletes up to one document found matching ` query ` using the provided ` ClientSession ` . 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 delete_one_with_session(
        &self,
        query: Document,
        options: impl Into<Option<DeleteOptions>>,
        session: &mut ClientSession,
    ) -> Result<DeleteResult> {
        RUNTIME.block_on(self.async_collection.delete_one_with_session(
            query,
            options.into(),
            &mut session.async_client_session,
        ))
    }
pub fn delete_one_with_session ( & self , query : Document , options : impl Into < Option < DeleteOptions > > , session : & mut ClientSession , ) -> Result < DeleteResult > { RUNTIME . block_on ( self . async_collection . delete_one_with_session ( query , options . into ( ) , & mut session . async_client_session , ) ) }
Deletes up to one document found matching `query` using the provided `ClientSession`.
Deletes up to one document found matching ` query ` using the provided ` ClientSession ` .
&self
query
Document
options
impl Into<Option<DeleteOptions>>
session
&mut ClientSession