/// Stores the new value of `contents` in the document.
Stores the new value of `contents` in the document.
Stores the new value of ` contents ` in the document .
pub async fn update<Cn: Connection>(&mut self, connection: &Cn) -> Result<(), Error> {
        let mut doc = self.to_document()?;
        connection.update::<C>(&mut doc).await?;
        self.header = doc.header;
        Ok(())
    }
pub async fn update < Cn : Connection > ( & mut self , connection : & Cn ) -> Result < ( ) , Error > { let mut doc = self . to_document ( ) ? ; connection . update :: < C > ( & mut doc ) . await ? ; self . header = doc . header ; Ok ( ( ) ) }
Stores the new value of `contents` in the document.
Stores the new value of ` contents ` in the document .
&mut self
connection
&Cn