pub struct BackupBundle {
pub recovery_type: RecoveryType,
pub data: Vec<u8>,
pub user_secret: Option<Vec<u8>>,
}Expand description
Output of a backup operation.
Fields§
§recovery_type: RecoveryTypeWhich recovery strategy produced this backup.
data: Vec<u8>Encrypted backup data (safe to store on disk / cloud).
user_secret: Option<Vec<u8>>One-time secret to display to the user (e.g., recovery key).
None for passphrase-based recovery (user already knows the secret).
Trait Implementations§
Source§impl Clone for BackupBundle
impl Clone for BackupBundle
Source§fn clone(&self) -> BackupBundle
fn clone(&self) -> BackupBundle
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 BackupBundle
impl Debug for BackupBundle
Source§impl<'de> Deserialize<'de> for BackupBundle
impl<'de> Deserialize<'de> for BackupBundle
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 BackupBundle
impl RefUnwindSafe for BackupBundle
impl Send for BackupBundle
impl Sync for BackupBundle
impl Unpin for BackupBundle
impl UnsafeUnpin for BackupBundle
impl UnwindSafe for BackupBundle
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