Struct sea_orm::query::UpdateOne [−][src]
pub struct UpdateOne<A> where
A: ActiveModelTrait, { /* fields omitted */ }
Expand description
Defines an UPDATE operation on one ActiveModel
Implementations
pub async fn exec<'b, C>(
self,
db: &'b C
) -> Result<<A::Entity as EntityTrait>::Model, DbErr> where
C: ConnectionTrait<'b>,
pub async fn exec<'b, C>(
self,
db: &'b C
) -> Result<<A::Entity as EntityTrait>::Model, DbErr> where
C: ConnectionTrait<'b>,
Execute an update operation on an ActiveModel
Trait Implementations
type QueryStatement = UpdateStatement
Add the query to perform a FILTER on
Add an AND WHERE expression Read more
Apply a where condition using the model’s primary key
Perform a check to determine table belongs to a Model through it’s name alias
type QueryStatement = UpdateStatement
type QueryStatement = UpdateStatement
Constrain the QueryStatement to QueryStatementBuilder trait
Get a mutable ref to the query builder
Get an immutable ref to the query builder
Take ownership of the query builder
Auto Trait Implementations
impl<A> !RefUnwindSafe for UpdateOne<A>
impl<A> !UnwindSafe for UpdateOne<A>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more