pub struct UpdateOne<A>where
A: ActiveModelTrait,{ /* private fields */ }
Expand description
Defines an UPDATE operation on one ActiveModel
Implementations§
Trait Implementations§
source§impl<A> QueryFilter for UpdateOne<A>where
A: ActiveModelTrait,
impl<A> QueryFilter for UpdateOne<A>where
A: ActiveModelTrait,
type QueryStatement = UpdateStatement
source§fn query(&mut self) -> &mut UpdateStatement
fn query(&mut self) -> &mut UpdateStatement
Add the query to perform a FILTER on
source§fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
fn filter<F>(self, filter: F) -> Selfwhere
F: IntoCondition,
Add an AND WHERE expression Read more
source§fn belongs_to<M>(self, model: &M) -> Selfwhere
M: ModelTrait,
fn belongs_to<M>(self, model: &M) -> Selfwhere
M: ModelTrait,
Apply a where condition using the model’s primary key
source§fn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Selfwhere
M: ModelTrait,
fn belongs_to_tbl_alias<M>(self, model: &M, tbl_alias: &str) -> Selfwhere
M: ModelTrait,
Perform a check to determine table belongs to a Model through it’s name alias
source§impl<A> QueryTrait for UpdateOne<A>where
A: ActiveModelTrait,
impl<A> QueryTrait for UpdateOne<A>where
A: ActiveModelTrait,
§type QueryStatement = UpdateStatement
type QueryStatement = UpdateStatement
Constrain the QueryStatement to QueryStatementBuilder trait
source§fn query(&mut self) -> &mut UpdateStatement
fn query(&mut self) -> &mut UpdateStatement
Get a mutable ref to the query builder
source§fn as_query(&self) -> &UpdateStatement
fn as_query(&self) -> &UpdateStatement
Get an immutable ref to the query builder
source§fn into_query(self) -> UpdateStatement
fn into_query(self) -> UpdateStatement
Take ownership of the query builder
Auto Trait Implementations§
impl<A> Freeze for UpdateOne<A>where
A: Freeze,
impl<A> !RefUnwindSafe for UpdateOne<A>
impl<A> Send for UpdateOne<A>where
A: Send,
impl<A> Sync for UpdateOne<A>where
A: Sync,
impl<A> Unpin for UpdateOne<A>where
A: Unpin,
impl<A> !UnwindSafe for UpdateOne<A>
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