Trait ormx::Patch [−][src]
pub trait Patch where
Self: Sized + Send + Sync + 'static, {
type Table: Table;
fn apply_to(self, entity: &mut Self::Table);
fn patch_row<'a, 'c: 'a>(
&'a self,
db: impl Executor<'c, Database = Db> + 'a,
id: <Self::Table as Table>::Id
) -> BoxFuture<'a, Result<()>>;
}
Expand description
A type which can be used to “patch” a row, updating multiple fields at once.
Associated Types
Required methods
Applies the data of this patch to the given entity. This does not persist the change in the database.