pub struct BackupMetadata {
pub created_at: SystemTime,
pub key_count: usize,
pub format_version: u32,
pub checksum: Vec<u8>,
pub compressed: bool,
pub has_audit_logs: bool,
pub comment: Option<String>,
pub data_size: usize,
}Expand description
Metadata about a backup
Fields§
§created_at: SystemTimeWhen the backup was created
key_count: usizeNumber of keys in the backup
format_version: u32Backup format version
checksum: Vec<u8>HMAC checksum for integrity verification
compressed: boolWhether the backup is compressed
has_audit_logs: boolWhether audit logs are included
comment: Option<String>Optional comment/description
data_size: usizeSize of encrypted data in bytes
Trait Implementations§
Source§impl Clone for BackupMetadata
impl Clone for BackupMetadata
Source§fn clone(&self) -> BackupMetadata
fn clone(&self) -> BackupMetadata
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 BackupMetadata
impl Debug for BackupMetadata
Source§impl<'de> Deserialize<'de> for BackupMetadata
impl<'de> Deserialize<'de> for BackupMetadata
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 BackupMetadata
impl RefUnwindSafe for BackupMetadata
impl Send for BackupMetadata
impl Sync for BackupMetadata
impl Unpin for BackupMetadata
impl UnwindSafe for BackupMetadata
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