pub struct PersistenceMetadata {
pub app_version: String,
pub config_hash: String,
pub total_entries: usize,
pub compression_enabled: bool,
pub custom: HashMap<String, String>,
}Expand description
Persistence metadata
Fields§
§app_version: StringApplication version
config_hash: StringCache configuration hash
total_entries: usizeTotal entries
compression_enabled: boolCompression enabled
custom: HashMap<String, String>Custom metadata
Trait Implementations§
Source§impl Clone for PersistenceMetadata
impl Clone for PersistenceMetadata
Source§fn clone(&self) -> PersistenceMetadata
fn clone(&self) -> PersistenceMetadata
Returns a duplicate 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 PersistenceMetadata
impl Debug for PersistenceMetadata
Source§impl Default for PersistenceMetadata
impl Default for PersistenceMetadata
Source§impl<'de> Deserialize<'de> for PersistenceMetadata
impl<'de> Deserialize<'de> for PersistenceMetadata
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 PersistenceMetadata
impl RefUnwindSafe for PersistenceMetadata
impl Send for PersistenceMetadata
impl Sync for PersistenceMetadata
impl Unpin for PersistenceMetadata
impl UnwindSafe for PersistenceMetadata
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