pub fn rename(
        &mut self,
        conn: &PgConnection,
        title: &str,
        comment: &str,
        actor: &Actor,
    ) -> Result<Revision> {
        conn.transaction(|| {
            let old_title = self.title.clone();
            self.title = title.to_owned();
            self.save_changes::<Self>(conn)?;
            self.add_null_revision(
                conn,
                &format!("(Rename: {} -> {}) {}", old_title, title, comment),
                actor,
            )
        })
    }
/// Change the title.
///
/// Creates a null revision.
Change the title.
Creates a null revision.
Change the title . Creates a null revision .
pub fn rename(
        &mut self,
        conn: &PgConnection,
        title: &str,
        comment: &str,
        actor: &Actor,
    ) -> Result<Revision> {
        conn.transaction(|| {
            let old_title = self.title.clone();
            self.title = title.to_owned();
            self.save_changes::<Self>(conn)?;
            self.add_null_revision(
                conn,
                &format!("(Rename: {} -> {}) {}", old_title, title, comment),
                actor,
            )
        })
    }
pub fn rename ( & mut self , conn : & PgConnection , title : & str , comment : & str , actor : & Actor , ) -> Result < Revision > { conn . transaction ( | | { let old_title = self . title . clone ( ) ; self . title = title . to_owned ( ) ; self . save_changes :: < Self > ( conn ) ? ; self . add_null_revision ( conn , & format ! ( " " old_title title comment ) , actor , ) } ) }
Change the title.
Change the title .
&mut self
conn
&PgConnection
title
&str
comment
&str
actor
&Actor
&mut self
conn
&PgConnection
title
&str
comment
&str
actor
&Actor