pub fn delete_document_if_match_return_old<IfMatch, Old>(
        &self,
        key: DocumentKey,
        if_match: IfMatch,
    ) -> Result<Document<Old>>
    where
        IfMatch: Into<String>,
        Old: 'static + DeserializeOwned,
    {
        self.execute(DeleteDocumentReturnOld::new(self.name(), key).with_if_match(if_match))
    }
/// Deletes the document with the given key from this collection if the
/// match condition is met and returns the deleted document.
///
/// # Arguments
///
/// * `key` : The key of the document to be deleted
/// * `if_match` : The match condition that must be met to delete the
///   document
Deletes the document with the given key from this collection if the
match condition is met and returns the deleted document.
Deletes the document with the given key from this collection if the match condition is met and returns the deleted document .
pub fn delete_document_if_match_return_old<IfMatch, Old>(
        &self,
        key: DocumentKey,
        if_match: IfMatch,
    ) -> Result<Document<Old>>
    where
        IfMatch: Into<String>,
        Old: 'static + DeserializeOwned,
    {
        self.execute(DeleteDocumentReturnOld::new(self.name(), key).with_if_match(if_match))
    }
pub fn delete_document_if_match_return_old < IfMatch , Old > ( & self , key : DocumentKey , if_match : IfMatch , ) -> Result < Document < Old > > where IfMatch : Into < String > , Old : ' static + DeserializeOwned , { self . execute ( DeleteDocumentReturnOld :: new ( self . name ( ) , key ) . with_if_match ( if_match ) ) }
Deletes the document with the given key from this collection if the
match condition is met and returns the deleted document.
Deletes the document with the given key from this collection if the match condition is met and returns the deleted document .
&self
key
DocumentKey
if_match
IfMatch
&self
key
DocumentKey
if_match
IfMatch