pub enum BackupKind {
MasterKey,
KdfSalt,
}Expand description
What a backup blob carries, so import restores it to the right backend
(KOV-34). Serialized inside the encrypted payload, never in the clear.
Variants§
MasterKey
A stored 32-byte master key (keyring-mode vaults) → the OS keyring.
KdfSalt
The Argon2 kdf.salt (passphrase-mode vaults) → the kdf.salt file. The
passphrase is the user’s and is never part of the backup.
Implementations§
Trait Implementations§
Source§impl Clone for BackupKind
impl Clone for BackupKind
Source§fn clone(&self) -> BackupKind
fn clone(&self) -> BackupKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BackupKind
Source§impl Debug for BackupKind
impl Debug for BackupKind
Source§impl<'de> Deserialize<'de> for BackupKind
impl<'de> Deserialize<'de> for BackupKind
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 Eq for BackupKind
Source§impl PartialEq for BackupKind
impl PartialEq for BackupKind
Source§fn eq(&self, other: &BackupKind) -> bool
fn eq(&self, other: &BackupKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for BackupKind
impl Serialize for BackupKind
impl StructuralPartialEq for BackupKind
Auto Trait Implementations§
impl Freeze for BackupKind
impl RefUnwindSafe for BackupKind
impl Send for BackupKind
impl Sync for BackupKind
impl Unpin for BackupKind
impl UnsafeUnpin for BackupKind
impl UnwindSafe for BackupKind
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