pub struct UpdateFieldChain { /* private fields */ }Expand description
A chain of UpdateField operations.
Implementations§
Source§impl UpdateFieldChain
impl UpdateFieldChain
pub fn new() -> Self
pub fn assign( self, field: impl Into<String>, value: impl Into<Arg>, opts: UpdateFieldOptions, ) -> Self
pub fn incr(self, field: impl Into<String>, opts: UpdateFieldOptions) -> Self
pub fn decr(self, field: impl Into<String>, opts: UpdateFieldOptions) -> Self
pub fn add( self, field: impl Into<String>, value: impl Into<Arg>, opts: UpdateFieldOptions, ) -> Self
pub fn sub( self, field: impl Into<String>, value: impl Into<Arg>, opts: UpdateFieldOptions, ) -> Self
pub fn mul( self, field: impl Into<String>, value: impl Into<Arg>, opts: UpdateFieldOptions, ) -> Self
pub fn div( self, field: impl Into<String>, value: impl Into<Arg>, opts: UpdateFieldOptions, ) -> Self
pub fn build(self) -> Vec<(String, UpdateValue)>
Trait Implementations§
Source§impl Clone for UpdateFieldChain
impl Clone for UpdateFieldChain
Source§fn clone(&self) -> UpdateFieldChain
fn clone(&self) -> UpdateFieldChain
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 Debug for UpdateFieldChain
impl Debug for UpdateFieldChain
Source§impl Default for UpdateFieldChain
impl Default for UpdateFieldChain
Source§fn default() -> UpdateFieldChain
fn default() -> UpdateFieldChain
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateFieldChain
impl !RefUnwindSafe for UpdateFieldChain
impl !Send for UpdateFieldChain
impl !Sync for UpdateFieldChain
impl Unpin for UpdateFieldChain
impl !UnwindSafe for UpdateFieldChain
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