pub struct KeyValuePair {
pub key: Vec<u8>,
pub timestamp: u64,
pub value: Option<Vec<u8>>,
}
Expand description
A KeyValuePair is an owned version of a key-value pair.
Fields§
§key: Vec<u8>
The key of this KeyValuePair.
timestamp: u64
The timestamp of this KeyValuePair.
value: Option<Vec<u8>>
The value of this KeyValuePair. None indicates a tombstone.
Trait Implementations§
Source§impl Clone for KeyValuePair
impl Clone for KeyValuePair
Source§fn clone(&self) -> KeyValuePair
fn clone(&self) -> KeyValuePair
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 KeyValuePair
impl Debug for KeyValuePair
Source§impl From<&KeyValuePair> for Key
impl From<&KeyValuePair> for Key
Source§fn from(kvr: &KeyValuePair) -> Self
fn from(kvr: &KeyValuePair) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a KeyValuePair> for KeyRef<'a>
impl<'a> From<&'a KeyValuePair> for KeyRef<'a>
Source§fn from(kvp: &'a KeyValuePair) -> Self
fn from(kvp: &'a KeyValuePair) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a KeyValuePair> for KeyValueRef<'a>
impl<'a> From<&'a KeyValuePair> for KeyValueRef<'a>
Source§fn from(kvp: &'a KeyValuePair) -> Self
fn from(kvp: &'a KeyValuePair) -> Self
Converts to this type from the input type.
Source§impl<'a> From<KeyRef<'a>> for KeyValuePair
impl<'a> From<KeyRef<'a>> for KeyValuePair
Source§impl From<KeyValuePair> for Key
impl From<KeyValuePair> for Key
Source§fn from(kvr: KeyValuePair) -> Self
fn from(kvr: KeyValuePair) -> Self
Converts to this type from the input type.
Source§impl<'a> From<KeyValueRef<'a>> for KeyValuePair
impl<'a> From<KeyValueRef<'a>> for KeyValuePair
Source§fn from(kvr: KeyValueRef<'a>) -> Self
fn from(kvr: KeyValueRef<'a>) -> Self
Converts to this type from the input type.
Source§impl Ord for KeyValuePair
impl Ord for KeyValuePair
Source§fn cmp(&self, rhs: &KeyValuePair) -> Ordering
fn cmp(&self, rhs: &KeyValuePair) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for KeyValuePair
impl PartialEq for KeyValuePair
Source§impl PartialOrd for KeyValuePair
impl PartialOrd for KeyValuePair
impl Eq for KeyValuePair
Auto Trait Implementations§
impl Freeze for KeyValuePair
impl RefUnwindSafe for KeyValuePair
impl Send for KeyValuePair
impl Sync for KeyValuePair
impl Unpin for KeyValuePair
impl UnwindSafe for KeyValuePair
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