/// Updates up to one document matching `query` in the collection using the provided
/// `ClientSession`.
///
/// Both `Document` and `Vec<Document>` implement `Into<UpdateModifications>`, so either can be
/// passed in place of constructing the enum case. Note: pipeline updates are only supported
/// in MongoDB 4.2+. See the official MongoDB
/// [documentation](https://docs.mongodb.com/manual/reference/command/update/#behavior) for more information on specifying updates.
///
/// 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.
Updates up to one document matching `query` in the collection 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.
Updates up to one document matching ` query ` in the collection 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 update_one_with_session(
        &self,
        query: Document,
        update: impl Into<UpdateModifications>,
        options: impl Into<Option<UpdateOptions>>,
        session: &mut ClientSession,
    ) -> Result<UpdateResult> {
        RUNTIME.block_on(self.async_collection.update_one_with_session(
            query,
            update.into(),
            options.into(),
            &mut session.async_client_session,
        ))
    }
pub fn update_one_with_session ( & self , query : Document , update : impl Into < UpdateModifications > , options : impl Into < Option < UpdateOptions > > , session : & mut ClientSession , ) -> Result < UpdateResult > { RUNTIME . block_on ( self . async_collection . update_one_with_session ( query , update . into ( ) , options . into ( ) , & mut session . async_client_session , ) ) }
Updates up to one document matching `query` in the collection using the provided
`ClientSession`.
Updates up to one document matching ` query ` in the collection using the provided ` ClientSession ` .
&self
query
Document
update
impl Into<UpdateModifications>
options
impl Into<Option<UpdateOptions>>
session
&mut ClientSession