pub enum UpdateAction {
Set(String, UpdateValue),
Remove(String),
Add(String, UpdateValue),
Delete(String, UpdateValue),
}Expand description
Update expression actions
Variants§
Set(String, UpdateValue)
SET path = value (or SET path = path + value for increment)
Remove(String)
REMOVE path
Add(String, UpdateValue)
ADD path value (for numbers or sets)
Delete(String, UpdateValue)
DELETE path value (for sets)
Trait Implementations§
Source§impl Clone for UpdateAction
impl Clone for UpdateAction
Source§fn clone(&self) -> UpdateAction
fn clone(&self) -> UpdateAction
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 UpdateAction
impl Debug for UpdateAction
Source§impl PartialEq for UpdateAction
impl PartialEq for UpdateAction
impl StructuralPartialEq for UpdateAction
Auto Trait Implementations§
impl !Freeze for UpdateAction
impl RefUnwindSafe for UpdateAction
impl Send for UpdateAction
impl Sync for UpdateAction
impl Unpin for UpdateAction
impl UnwindSafe for UpdateAction
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