pub enum Insertion {
Always,
IfExists,
IfNotExists,
}
Expand description
Redis provides the ability to conditionally apply an inseration based on the existence of the a value that is equal.
Variants§
Always
The presence of the value does not matter.
IfExists
The presence of the value is required to insert.
IfNotExists
The presence of the value is forbidden to insert.
Trait Implementations§
source§impl PartialEq<Insertion> for Insertion
impl PartialEq<Insertion> for Insertion
impl Eq for Insertion
impl StructuralEq for Insertion
impl StructuralPartialEq for Insertion
Auto Trait Implementations§
impl RefUnwindSafe for Insertion
impl Send for Insertion
impl Sync for Insertion
impl Unpin for Insertion
impl UnwindSafe for Insertion
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