pub struct Update<'q, E: Executor, T: 'q + Encode<'q, E::T> + Type<E::T>> { /* private fields */ }Implementations§
Source§impl<'q, E, T: 'q + Encode<'q, E::T> + Type<E::T>> Update<'q, E, T>where
E: Executor,
impl<'q, E, T: 'q + Encode<'q, E::T> + Type<E::T>> Update<'q, E, T>where
E: Executor,
pub fn bind(&'q mut self, value: T) -> &'q mut Self
pub fn where(&mut self, column: &str, operator: &str, value: T) -> &mut Self
pub fn and_where(&mut self, column: &str, operator: &str, value: T) -> &mut Self
pub fn or_where(&mut self, column: &str, operator: &str, value: T) -> &mut Self
pub async fn execute(&'q mut self) -> Result<()>
Auto Trait Implementations§
impl<'q, E, T> Freeze for Update<'q, E, T>
impl<'q, E, T> RefUnwindSafe for Update<'q, E, T>where
E: RefUnwindSafe,
<<E as Executor>::T as Database>::Arguments<'q>: RefUnwindSafe,
T: RefUnwindSafe,
impl<'q, E, T> Send for Update<'q, E, T>
impl<'q, E, T> Sync for Update<'q, E, T>
impl<'q, E, T> Unpin for Update<'q, E, T>
impl<'q, E, T> UnsafeUnpin for Update<'q, E, T>
impl<'q, E, T> !UnwindSafe for Update<'q, E, T>
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> 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