pub struct ModelUpdate<M: Table> { /* private fields */ }Expand description
A pending model UPDATE: the statement (which filters and mods have
already landed on) plus the setter, joined together only at verb time so
Table::before_update sees the setter first.
Implementations§
Source§impl<M: Table> ModelUpdate<M>
impl<M: Table> ModelUpdate<M>
Sourcepub fn apply(&mut self, mods: impl Mod<M::Update>)
pub fn apply(&mut self, mods: impl Mod<M::Update>)
Apply mods written against the concrete dialect statement — the same
escape hatch as ModelSelect::apply.
Trait Implementations§
Source§impl<M: Table> Debug for ModelUpdate<M>
impl<M: Table> Debug for ModelUpdate<M>
Source§impl<M: Table> HasJoins for ModelUpdate<M>
impl<M: Table> HasJoins for ModelUpdate<M>
Source§impl<M: Table> HasLimit for ModelUpdate<M>
impl<M: Table> HasLimit for ModelUpdate<M>
Source§impl<M: Table> HasOrderBy for ModelUpdate<M>where
M::Update: HasOrderBy,
impl<M: Table> HasOrderBy for ModelUpdate<M>where
M::Update: HasOrderBy,
Source§fn order_by_mut(&mut self) -> &mut OrderBy
fn order_by_mut(&mut self) -> &mut OrderBy
The
ORDER BY clause to modify.Source§impl<M: Table> HasReturning for ModelUpdate<M>where
M::Update: HasReturning,
impl<M: Table> HasReturning for ModelUpdate<M>where
M::Update: HasReturning,
Source§fn returning_mut(&mut self) -> &mut Returning
fn returning_mut(&mut self) -> &mut Returning
The
RETURNING clause to modify.Source§impl<M: Table> HasSet for ModelUpdate<M>
impl<M: Table> HasSet for ModelUpdate<M>
Source§impl<M: Table> HasTableRef for ModelUpdate<M>where
M::Update: HasTableRef,
impl<M: Table> HasTableRef for ModelUpdate<M>where
M::Update: HasTableRef,
Source§fn table_ref_mut(&mut self) -> &mut TableRef
fn table_ref_mut(&mut self) -> &mut TableRef
The table reference to modify.
Source§impl<M: Table> HasWhere for ModelUpdate<M>
impl<M: Table> HasWhere for ModelUpdate<M>
Auto Trait Implementations§
impl<M> Freeze for ModelUpdate<M>
impl<M> RefUnwindSafe for ModelUpdate<M>
impl<M> Send for ModelUpdate<M>
impl<M> Sync for ModelUpdate<M>
impl<M> Unpin for ModelUpdate<M>
impl<M> UnsafeUnpin for ModelUpdate<M>
impl<M> UnwindSafe for ModelUpdate<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more