Struct dynamodb_expression::update::if_not_exists::IfNotExists   
source · pub struct IfNotExists { /* private fields */ }Expand description
Represents an update expression to set an attribute if it doesn’t exist.
See also: Path::if_not_exists
Implementations§
source§impl IfNotExists
 
impl IfNotExists
pub fn builder<T>(dst: T) -> Builder
sourcepub fn and<T>(self, action: T) -> SetRemove
 
pub fn and<T>(self, action: T) -> SetRemove
Add an additional Set or Remove statement to this expression.
use dynamodb_expression::{Num, Path, update::Set};
let set = "foo"
    .parse::<Path>()?
    .if_not_exists()
    .set(Num::new(7))
    .and("bar".parse::<Path>()?.set("a value"));
assert_eq!(r#"SET foo = if_not_exists(foo, 7), bar = "a value""#, set.to_string());Trait Implementations§
source§impl Clone for IfNotExists
 
impl Clone for IfNotExists
source§fn clone(&self) -> IfNotExists
 
fn clone(&self) -> IfNotExists
Returns a copy 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 IfNotExists
 
impl Debug for IfNotExists
source§impl Display for IfNotExists
 
impl Display for IfNotExists
source§impl From<IfNotExists> for SetAction
 
impl From<IfNotExists> for SetAction
source§fn from(if_not_exists: IfNotExists) -> Self
 
fn from(if_not_exists: IfNotExists) -> Self
Converts to this type from the input type.
source§impl From<IfNotExists> for SetRemove
 
impl From<IfNotExists> for SetRemove
source§fn from(value: IfNotExists) -> Self
 
fn from(value: IfNotExists) -> Self
Converts to this type from the input type.
source§impl From<IfNotExists> for Update
 
impl From<IfNotExists> for Update
source§fn from(value: IfNotExists) -> Self
 
fn from(value: IfNotExists) -> Self
Converts to this type from the input type.
source§impl PartialEq for IfNotExists
 
impl PartialEq for IfNotExists
source§fn eq(&self, other: &IfNotExists) -> bool
 
fn eq(&self, other: &IfNotExists) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl Eq for IfNotExists
impl StructuralEq for IfNotExists
impl StructuralPartialEq for IfNotExists
Auto Trait Implementations§
impl RefUnwindSafe for IfNotExists
impl Send for IfNotExists
impl Sync for IfNotExists
impl Unpin for IfNotExists
impl UnwindSafe for IfNotExists
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 Q
 
impl<Q, K> Equivalent<K> for Q
§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 Q
 
impl<Q, K> Equivalent<K> for Q
§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.