pub struct UpdateSeed<D, T> { /* private fields */ }Implementations§
Source§impl<D, T: Table> UpdateSeed<D, T>
impl<D, T: Table> UpdateSeed<D, T>
A correlated subquery over the table this statement will write —
available before the SET list, since the scope it correlates
against is the table, not the assignments.
Sourcepub fn set_to<C, V, Idxs>(self, column: Column<C>, value: V) -> Update<D, T>
pub fn set_to<C, V, Idxs>(self, column: Column<C>, value: V) -> Update<D, T>
SET column = <expression> as the statement’s first assignment —
infallible, since one assignment is one assignment. .set_to(..)
again for more.
Sourcepub fn set(self, sets: Assignments<T>) -> Update<D, T>
pub fn set(self, sets: Assignments<T>) -> Update<D, T>
The statement’s SET list. Infallible: an Assignments holds at
least one assignment by construction, and the empty case an
*Update can be lives in Assignments::from_row, which is where
the ? goes.
Auto Trait Implementations§
impl<D, T> Freeze for UpdateSeed<D, T>
impl<D, T> RefUnwindSafe for UpdateSeed<D, T>
impl<D, T> Send for UpdateSeed<D, T>
impl<D, T> Sync for UpdateSeed<D, T>
impl<D, T> Unpin for UpdateSeed<D, T>
impl<D, T> UnsafeUnpin for UpdateSeed<D, T>
impl<D, T> UnwindSafe for UpdateSeed<D, T>
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