fn update<'a>(&'a self, conn: &PgConnection) -> Result<usize, diesel::result::Error>
    where
        &'a Self: AsChangeset<Target = Self::Table>,
        <Self::Table as QuerySource>::FromClause:
            QueryFragment<<PgConnection as Connection>::Backend>,
        <Self::Table as IntoUpdateTarget>::WhereClause: QueryFragment<Pg>,
        <&'a Self as AsChangeset>::Changeset: QueryFragment<Pg>,
    {
        diesel::update(Self::Table::table()).set(self).execute(conn)
    }
/// Updates an existing entry in the database.
Updates an existing entry in the database.
Updates an existing entry in the database .
fn update<'a>(&'a self, conn: &PgConnection) -> Result<usize, diesel::result::Error>
    where
        &'a Self: AsChangeset<Target = Self::Table>,
        <Self::Table as QuerySource>::FromClause:
            QueryFragment<<PgConnection as Connection>::Backend>,
        <Self::Table as IntoUpdateTarget>::WhereClause: QueryFragment<Pg>,
        <&'a Self as AsChangeset>::Changeset: QueryFragment<Pg>,
    {
        diesel::update(Self::Table::table()).set(self).execute(conn)
    }
fn update < ' a > ( & ' a self , conn : & PgConnection ) -> Result < usize , diesel :: result :: Error > where & ' a Self : AsChangeset < Target = Self :: Table > , < Self :: Table as QuerySource > :: FromClause : QueryFragment < < PgConnection as Connection > :: Backend > , < Self :: Table as IntoUpdateTarget > :: WhereClause : QueryFragment < Pg > , < & ' a Self as AsChangeset > :: Changeset : QueryFragment < Pg > , { diesel :: update ( Self :: Table :: table ( ) ) . set ( self ) . execute ( conn ) }
Updates an existing entry in the database.
Updates an existing entry in the database .
&'a self
conn
&PgConnection
&'a self
conn
&PgConnection