Struct quick_kv::types::binarykv::BinaryKvCache
source · pub struct BinaryKvCache {
pub key: String,
pub value: Vec<u8>,
}Expand description
Bytes of data that are cached in memory for speed improvements on the mini client.
use quick_kv::prelude::*;
use quick_kv::types::binarykv::BinaryKvCache;
let cache = BinaryKvCache::new("key".to_string(), "value".to_string().into_bytes());Fields§
§key: String§value: Vec<u8>Implementations§
Trait Implementations§
source§impl Clone for BinaryKvCache
impl Clone for BinaryKvCache
source§fn clone(&self) -> BinaryKvCache
fn clone(&self) -> BinaryKvCache
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 BinaryKvCache
impl Debug for BinaryKvCache
source§impl Hash for BinaryKvCache
impl Hash for BinaryKvCache
source§impl PartialEq for BinaryKvCache
impl PartialEq for BinaryKvCache
source§fn eq(&self, other: &BinaryKvCache) -> bool
fn eq(&self, other: &BinaryKvCache) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BinaryKvCache
impl PartialOrd for BinaryKvCache
source§fn partial_cmp(&self, other: &BinaryKvCache) -> Option<Ordering>
fn partial_cmp(&self, other: &BinaryKvCache) -> Option<Ordering>
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 moresource§impl Serialize for BinaryKvCache
impl Serialize for BinaryKvCache
impl Eq for BinaryKvCache
impl StructuralEq for BinaryKvCache
impl StructuralPartialEq for BinaryKvCache
Auto Trait Implementations§
impl RefUnwindSafe for BinaryKvCache
impl Send for BinaryKvCache
impl Sync for BinaryKvCache
impl Unpin for BinaryKvCache
impl UnwindSafe for BinaryKvCache
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