pub struct Setnx {
pub key: String,
pub value: Bytes,
}
Expand description
Set key to hold string value if key does not exist. In that case, it is equal to SET. When key already holds a value, no operation is performed. SETNX is short for “SET if Not eXists”.
Fields§
§key: String
§value: Bytes
Trait Implementations§
Source§impl Executable for Setnx
impl Executable for Setnx
impl StructuralPartialEq for Setnx
Auto Trait Implementations§
impl !Freeze for Setnx
impl RefUnwindSafe for Setnx
impl Send for Setnx
impl Sync for Setnx
impl Unpin for Setnx
impl UnwindSafe for Setnx
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