find_one_and_replace

Function find_one_and_replace 

Source
pub async fn find_one_and_replace<T>(
    filter: Document,
    replacement: impl Borrow<T>,
    options: impl Into<Option<FindOneAndReplaceOptions>>,
    collection_name: &str,
    db: &Database,
) -> Result<Option<T>, Error>