pub fn delete_document_return_old<Old>(&self, key: DocumentKey) -> Result<Document<Old>>
    where
        Old: 'static + DeserializeOwned,
    {
        self.execute(DeleteDocumentReturnOld::new(self.name(), key))
    }
/// Deletes the document with the given key from this collection and returns
/// the deleted document.
Deletes the document with the given key from this collection and returns
the deleted document.
Deletes the document with the given key from this collection and returns the deleted document .
pub fn delete_document_return_old<Old>(&self, key: DocumentKey) -> Result<Document<Old>>
    where
        Old: 'static + DeserializeOwned,
    {
        self.execute(DeleteDocumentReturnOld::new(self.name(), key))
    }
pub fn delete_document_return_old < Old > ( & self , key : DocumentKey ) -> Result < Document < Old > > where Old : ' static + DeserializeOwned , { self . execute ( DeleteDocumentReturnOld :: new ( self . name ( ) , key ) ) }
Deletes the document with the given key from this collection and returns
the deleted document.
Deletes the document with the given key from this collection and returns the deleted document .
&self
key
DocumentKey
&self
key
DocumentKey