pub struct KVStoreState {
pub data: HashMap<String, ValueEntry>,
pub version: u64,
}Expand description
KVStore state that can be serialized/deserialized
Fields§
§data: HashMap<String, ValueEntry>§version: u64Trait Implementations§
Source§impl Clone for KVStoreState
impl Clone for KVStoreState
Source§fn clone(&self) -> KVStoreState
fn clone(&self) -> KVStoreState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 KVStoreState
impl Debug for KVStoreState
Source§impl Default for KVStoreState
impl Default for KVStoreState
Source§fn default() -> KVStoreState
fn default() -> KVStoreState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KVStoreState
impl<'de> Deserialize<'de> for KVStoreState
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
Auto Trait Implementations§
impl Freeze for KVStoreState
impl RefUnwindSafe for KVStoreState
impl Send for KVStoreState
impl Sync for KVStoreState
impl Unpin for KVStoreState
impl UnsafeUnpin for KVStoreState
impl UnwindSafe for KVStoreState
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