pub enum Credential {
Password(SecretString),
Key([u8; 32]),
}Expand description
How to unlock a store. Encryption is mandatory — there is no plaintext option.
Variants§
Password(SecretString)
Derived from a password via the store’s KDF + salt.
Key([u8; 32])
A raw 32-byte key (e.g. from a KMS or keyring).
Implementations§
Trait Implementations§
Source§impl Drop for Credential
impl Drop for Credential
Auto Trait Implementations§
impl Freeze for Credential
impl RefUnwindSafe for Credential
impl Send for Credential
impl Sync for Credential
impl Unpin for Credential
impl UnsafeUnpin for Credential
impl UnwindSafe for Credential
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