pub enum SetCondition {
OnlyIfDoesNotExist,
OnlyIfEqualOrDoesNotExist,
Unconditional,
}
Expand description
Condition for a Set
Request
Variants§
OnlyIfDoesNotExist
The Set
operation will only execute if the State Store does not have this key already.
OnlyIfEqualOrDoesNotExist
The Set
operation will only execute if the State Store does not have this key or it has this key and
the value in the State Store is equal to the value provided for this Set
operation.
Unconditional
The Set
operation will execute regardless of if the key exists already and regardless of the value
of this key in the State Store.
Trait Implementations§
Source§impl Clone for SetCondition
impl Clone for SetCondition
Source§fn clone(&self) -> SetCondition
fn clone(&self) -> SetCondition
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 SetCondition
impl Debug for SetCondition
Source§impl Default for SetCondition
impl Default for SetCondition
Source§fn default() -> SetCondition
fn default() -> SetCondition
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SetCondition
impl RefUnwindSafe for SetCondition
impl Send for SetCondition
impl Sync for SetCondition
impl Unpin for SetCondition
impl UnwindSafe for SetCondition
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