Struct dynamodb_expression::update::set::Assign
source · pub struct Assign { /* private fields */ }
Expand description
Represents assigning a value of an attribute, list, or map.
See also: Path::assign
Implementations§
source§impl Assign
impl Assign
pub fn new<P, V>(path: P, value: V) -> Selfwhere P: Into<Path>, V: Into<Value>,
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").assign(Num::new(7))
.and(Path::new_name("bar").assign("a value"));
assert_eq!(r#"SET foo = 7, bar = "a value""#, set.to_string());
Trait Implementations§
source§impl PartialEq for Assign
impl PartialEq for Assign
impl Eq for Assign
impl StructuralEq for Assign
impl StructuralPartialEq for Assign
Auto Trait Implementations§
impl RefUnwindSafe for Assign
impl Send for Assign
impl Sync for Assign
impl Unpin for Assign
impl UnwindSafe for Assign
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.