pub struct BackupMetadata {
pub version: String,
pub created_at: u64,
pub backup_filename: String,
pub original_path: String,
pub platform: String,
pub checksum: String,
pub size: u64,
}Expand description
Metadata about a backup.
Fields§
§version: StringVersion that was backed up.
created_at: u64When the backup was created (Unix timestamp).
backup_filename: StringPath to the backup binary (relative to backup dir).
original_path: StringOriginal path of the binary.
platform: StringPlatform identifier.
checksum: StringSHA-256 checksum of the backup.
size: u64Size in bytes.
Implementations§
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