pub struct Backup {
pub id: String,
pub data: Vec<u8>,
pub metadata: BackupMetadata,
pub created_at: u64,
pub size: usize,
pub checksum: String,
}Expand description
Backup data structure
Fields§
§id: StringBackup ID
data: Vec<u8>Backup data
metadata: BackupMetadataBackup metadata
created_at: u64Creation timestamp
size: usizeBackup size in bytes
checksum: StringData checksum
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Backup
impl<'de> Deserialize<'de> for Backup
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
impl StructuralPartialEq for Backup
Auto Trait Implementations§
impl Freeze for Backup
impl RefUnwindSafe for Backup
impl Send for Backup
impl Sync for Backup
impl Unpin for Backup
impl UnwindSafe for Backup
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