pub struct ValidatedUpdateOne<A: ActiveModelTrait> { /* private fields */ }Expand description
A validated UpdateOne request, where the primary key is set
and it’s possible to generate the right SQL condition.
Implementations§
Source§impl<A> ValidatedUpdateOne<A>where
A: ActiveModelTrait,
impl<A> ValidatedUpdateOne<A>where
A: ActiveModelTrait,
Trait Implementations§
Source§impl<A: Clone + ActiveModelTrait> Clone for ValidatedUpdateOne<A>
impl<A: Clone + ActiveModelTrait> Clone for ValidatedUpdateOne<A>
Source§fn clone(&self) -> ValidatedUpdateOne<A>
fn clone(&self) -> ValidatedUpdateOne<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<A: Debug + ActiveModelTrait> Debug for ValidatedUpdateOne<A>
impl<A: Debug + ActiveModelTrait> Debug for ValidatedUpdateOne<A>
Source§impl<A> QueryFilter for ValidatedUpdateOne<A>where
A: ActiveModelTrait,
impl<A> QueryFilter for ValidatedUpdateOne<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 filter_mut<F>(&mut self, filter: F)where
F: IntoCondition,
fn filter_mut<F>(&mut self, filter: F)where
F: IntoCondition,
Like
Self::filter, but without consuming selfSource§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 Read more
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,
Like
belongs_to, but via a table alias Read moreSource§impl<A> QueryTrait for ValidatedUpdateOne<A>where
A: ActiveModelTrait,
impl<A> QueryTrait for ValidatedUpdateOne<A>where
A: ActiveModelTrait,
Source§type QueryStatement = UpdateStatement
type QueryStatement = UpdateStatement
Constrain the QueryStatement to StatementBuilder 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 ValidatedUpdateOne<A>where
A: Freeze,
impl<A> RefUnwindSafe for ValidatedUpdateOne<A>where
A: RefUnwindSafe,
impl<A> Send for ValidatedUpdateOne<A>where
A: Send,
impl<A> Sync for ValidatedUpdateOne<A>where
A: Sync,
impl<A> Unpin for ValidatedUpdateOne<A>where
A: Unpin,
impl<A> UnwindSafe for ValidatedUpdateOne<A>where
A: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more