pub enum UpdateValue {
Value(Value),
Placeholder(String),
Path(String),
Add(String, Box<UpdateValue>),
Sub(String, Box<UpdateValue>),
}Expand description
Value in update expression (can be literal, placeholder, or arithmetic)
Variants§
Value(Value)
Direct value (from placeholder or literal)
Placeholder(String)
Placeholder to be resolved
Path(String)
Attribute path reference
Add(String, Box<UpdateValue>)
Arithmetic: path + value or path - value
Sub(String, Box<UpdateValue>)
Trait Implementations§
Source§impl Clone for UpdateValue
impl Clone for UpdateValue
Source§fn clone(&self) -> UpdateValue
fn clone(&self) -> UpdateValue
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 UpdateValue
impl Debug for UpdateValue
Source§impl PartialEq for UpdateValue
impl PartialEq for UpdateValue
impl StructuralPartialEq for UpdateValue
Auto Trait Implementations§
impl !Freeze for UpdateValue
impl RefUnwindSafe for UpdateValue
impl Send for UpdateValue
impl Sync for UpdateValue
impl Unpin for UpdateValue
impl UnwindSafe for UpdateValue
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