pub struct PasswordBackupEncryptedDto {
pub format_version: u32,
pub salt: String,
pub nonce: String,
pub ciphertext: String,
}Expand description
Argon2id + ChaCha20-Poly1305 backup envelope (always built).
Fields§
§format_version: u32Schema version for forward compatibility.
salt: StringSalt for Argon2 (Base64).
nonce: StringNonce for ChaCha20-Poly1305 (Base64).
ciphertext: StringCiphertext including Poly1305 tag (Base64).
Trait Implementations§
Source§impl Clone for PasswordBackupEncryptedDto
impl Clone for PasswordBackupEncryptedDto
Source§fn clone(&self) -> PasswordBackupEncryptedDto
fn clone(&self) -> PasswordBackupEncryptedDto
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 moreSource§impl Debug for PasswordBackupEncryptedDto
impl Debug for PasswordBackupEncryptedDto
Source§impl<'de> Deserialize<'de> for PasswordBackupEncryptedDto
impl<'de> Deserialize<'de> for PasswordBackupEncryptedDto
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 PasswordBackupEncryptedDto
impl RefUnwindSafe for PasswordBackupEncryptedDto
impl Send for PasswordBackupEncryptedDto
impl Sync for PasswordBackupEncryptedDto
impl Unpin for PasswordBackupEncryptedDto
impl UnsafeUnpin for PasswordBackupEncryptedDto
impl UnwindSafe for PasswordBackupEncryptedDto
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