pub struct Key {
pub key: Vec<u8>,
pub timestamp: u64,
}
Expand description
A memory-owning Key.
Fields§
§key: Vec<u8>
The key for this Key.
timestamp: u64
The timestamp for this Key.
Trait Implementations§
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 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 Key
impl<'a> From<KeyValueRef<'a>> for Key
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 Key
impl Ord for Key
source§impl PartialOrd for Key
impl PartialOrd for Key
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Key
Auto Trait Implementations§
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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