pub struct UpdateDocument { /* private fields */ }Implementations§
Source§impl UpdateDocument
impl UpdateDocument
pub fn new() -> Self
pub fn set(self, key: &str, value: Value) -> Self
pub fn unset(self, key: &str) -> Self
pub fn inc(self, key: &str, value: Value) -> Self
pub fn mul(self, key: &str, value: Value) -> Self
pub fn rename(self, old_key: &str, new_key: &str) -> Self
pub fn set_on_insert(self, key: &str, value: Value) -> Self
pub fn min(self, key: &str, value: Value) -> Self
pub fn max(self, key: &str, value: Value) -> Self
pub fn current_date(self, key: &str, type_spec: Value) -> Self
pub fn push(self, key: &str, value: Value) -> Self
pub fn push_all(self, key: &str, values: Vec<Value>) -> Self
pub fn add_to_set(self, key: &str, value: Value) -> Self
pub fn pop(self, key: &str, pos: i64) -> Self
pub fn pull(self, key: &str, condition: Value) -> Self
pub fn pull_all(self, key: &str, values: Vec<Value>) -> Self
pub fn bit(self, key: &str, operation: Value) -> Self
Trait Implementations§
Source§impl Clone for UpdateDocument
impl Clone for UpdateDocument
Source§fn clone(&self) -> UpdateDocument
fn clone(&self) -> UpdateDocument
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 UpdateDocument
impl Debug for UpdateDocument
Source§impl<'de> Deserialize<'de> for UpdateDocument
impl<'de> Deserialize<'de> for UpdateDocument
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateDocument
impl RefUnwindSafe for UpdateDocument
impl Send for UpdateDocument
impl Sync for UpdateDocument
impl Unpin for UpdateDocument
impl UnwindSafe for UpdateDocument
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