/// Removes the document from the collection.
Removes the document from the collection.
Removes the document from the collection .
pub async fn delete<Cn: Connection>(&self, connection: &Cn) -> Result<(), Error> {
        let doc = self.to_document()?;
        connection.delete::<C>(&doc).await?;
        Ok(())
    }
pub async fn delete < Cn : Connection > ( & self , connection : & Cn ) -> Result < ( ) , Error > { let doc = self . to_document ( ) ? ; connection . delete :: < C > ( & doc ) . await ? ; Ok ( ( ) ) }
Removes the document from the collection.
Removes the document from the collection .
&self
connection
&Cn