pub struct BackupMetadata {
pub original_path: PathBuf,
pub backup_path: PathBuf,
pub timestamp: DateTime<Utc>,
pub content_hash: String,
}Expand description
Metadata about a backup
Fields§
§original_path: PathBufOriginal path of the file
backup_path: PathBufPath where the backup is stored
timestamp: DateTime<Utc>When the backup was created
content_hash: StringSHA-256 hash of the backup content for integrity verification
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