pub struct UpdateBuilder { /* private fields */ }Expand description
Builder for MongoDB update operations.
Implementations§
Source§impl UpdateBuilder
impl UpdateBuilder
Sourcepub fn set(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
pub fn set(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
Add a $set operation.
Sourcepub fn push(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
pub fn push(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
Add a $push operation.
Sourcepub fn pull(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
pub fn pull(self, field: impl Into<String>, value: impl Into<JsonValue>) -> Self
Add a $pull operation.
Trait Implementations§
Source§impl Clone for UpdateBuilder
impl Clone for UpdateBuilder
Source§fn clone(&self) -> UpdateBuilder
fn clone(&self) -> UpdateBuilder
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 UpdateBuilder
impl Debug for UpdateBuilder
Source§impl Default for UpdateBuilder
impl Default for UpdateBuilder
Source§fn default() -> UpdateBuilder
fn default() -> UpdateBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UpdateBuilder
impl RefUnwindSafe for UpdateBuilder
impl Send for UpdateBuilder
impl Sync for UpdateBuilder
impl Unpin for UpdateBuilder
impl UnwindSafe for UpdateBuilder
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