pub struct Math { /* private fields */ }
Expand description
Represents a DynamoDB math operation used as a part of an update expression.
See also: Path::math
Implementations§
source§impl Math
impl Math
A math operation to modify a field and assign the updated value to another (possibly different) field.
See also: Path::math
pub fn builder<T>(dst: T) -> Builderwhere T: Into<Path>,
sourcepub fn and<T>(self, action: T) -> Setwhere
T: Into<Set>,
pub fn and<T>(self, action: T) -> Setwhere T: Into<Set>,
Add an additional action to this SET
statement.
use dynamodb_expression::{Num, Path};
let set = Path::new_name("foo").math().add(7)
.and(Path::new_name("bar").assign("a value"));
assert_eq!(r#"SET foo = foo + 7, bar = "a value""#, set.to_string());
Trait Implementations§
source§impl PartialEq for Math
impl PartialEq for Math
impl Eq for Math
impl StructuralEq for Math
impl StructuralPartialEq for Math
Auto Trait Implementations§
impl RefUnwindSafe for Math
impl Send for Math
impl Sync for Math
impl Unpin for Math
impl UnwindSafe for Math
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.