pub struct MessagePutc {
pub key: Vec<u8>,
pub value: Vec<u8>,
pub expected_value: Option<Vec<u8>>,
}
Expand description
Put a key value pair if the value of that key is the same as the one provided.
§Fields
key
- The key to put.value
- The value to put.expected_value
- The expected value of the key before the PUT.
Fields§
§key: Vec<u8>
§value: Vec<u8>
§expected_value: Option<Vec<u8>>
Trait Implementations§
source§impl Clone for MessagePutc
impl Clone for MessagePutc
source§fn clone(&self) -> MessagePutc
fn clone(&self) -> MessagePutc
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 MessagePutc
impl Debug for MessagePutc
source§impl<'de> Deserialize<'de> for MessagePutc
impl<'de> Deserialize<'de> for MessagePutc
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for MessagePutc
impl PartialEq for MessagePutc
source§impl Revisioned for MessagePutc
impl Revisioned for MessagePutc
source§impl Serialize for MessagePutc
impl Serialize for MessagePutc
impl StructuralPartialEq for MessagePutc
Auto Trait Implementations§
impl Freeze for MessagePutc
impl RefUnwindSafe for MessagePutc
impl Send for MessagePutc
impl Sync for MessagePutc
impl Unpin for MessagePutc
impl UnwindSafe for MessagePutc
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)