Refresh this row, querying all columns from the database.
(
&'a mut self,
db: impl Executor<'c, Database = Db> + 'a,
)
| 145 | |
| 146 | /// Refresh this row, querying all columns from the database. |
| 147 | fn reload<'a, 'c: 'a>( |
| 148 | &'a mut self, |
| 149 | db: impl Executor<'c, Database = Db> + 'a, |
| 150 | ) -> impl Future<Output = Result<()>> + Send + 'a { |
| 151 | async move { |
| 152 | *self = Self::get(db, self.id()).send().await?; |
| 153 | Ok(()) |
| 154 | } |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | pub trait Delete |