pub struct UpdateQuery<M> { /* private fields */ }Implementations§
Source§impl<M: Model> UpdateQuery<M>
impl<M: Model> UpdateQuery<M>
pub fn new() -> Self
pub fn set<T, V>(self, field: ModelField<M, T>, value: V) -> Selfwhere
V: QueryValue<T>,
pub fn filter(self, expr: Expr) -> Self
pub fn returning_all(self) -> Self
pub fn allow_all(self) -> Self
pub fn into_ast(self) -> Result<QueryAst, QueryBuildError>
Auto Trait Implementations§
impl<M> Freeze for UpdateQuery<M>where
PhantomData<M>: Freeze,
impl<M> RefUnwindSafe for UpdateQuery<M>where
PhantomData<M>: RefUnwindSafe,
impl<M> Send for UpdateQuery<M>where
PhantomData<M>: Send,
impl<M> Sync for UpdateQuery<M>where
PhantomData<M>: Sync,
impl<M> Unpin for UpdateQuery<M>where
PhantomData<M>: Unpin,
impl<M> UnsafeUnpin for UpdateQuery<M>where
PhantomData<M>: UnsafeUnpin,
impl<M> UnwindSafe for UpdateQuery<M>where
PhantomData<M>: UnwindSafe,
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