pub struct UpdateBuilder<'db, M> { /* private fields */ }Implementations§
Source§impl<M: Model> UpdateBuilder<'_, M>
impl<M: Model> UpdateBuilder<'_, M>
pub fn set<T, V: QueryValue<T>>(self, field: ModelField<M, T>, value: V) -> Self
pub async fn execute(self) -> Result<Option<M>, OrmError>where
M: Send + 'static,
Auto Trait Implementations§
impl<'db, M> !RefUnwindSafe for UpdateBuilder<'db, M>
impl<'db, M> !UnwindSafe for UpdateBuilder<'db, M>
impl<'db, M> Freeze for UpdateBuilder<'db, M>where
UpdateQuery<M>: Freeze,
impl<'db, M> Send for UpdateBuilder<'db, M>where
UpdateQuery<M>: Send,
impl<'db, M> Sync for UpdateBuilder<'db, M>where
UpdateQuery<M>: Sync,
impl<'db, M> Unpin for UpdateBuilder<'db, M>where
UpdateQuery<M>: Unpin,
impl<'db, M> UnsafeUnpin for UpdateBuilder<'db, M>where
UpdateQuery<M>: UnsafeUnpin,
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