pub enum AccessKey {
Password(SecretString),
Identity(Identity),
}Expand description
Access key used to unlock a vault.
Variants§
Implementations§
Source§impl AccessKey
impl AccessKey
Sourcepub fn into_private(
self,
kdf: &KeyDerivation,
salt: &SaltString,
seed: Option<&Seed>,
) -> Result<PrivateKey, Error>
pub fn into_private( self, kdf: &KeyDerivation, salt: &SaltString, seed: Option<&Seed>, ) -> Result<PrivateKey, Error>
Convert this access key into a private key.
Trait Implementations§
Source§impl From<AccessKey> for SecretString
impl From<AccessKey> for SecretString
Source§impl From<SecretBox<str>> for AccessKey
impl From<SecretBox<str>> for AccessKey
Source§fn from(value: SecretString) -> Self
fn from(value: SecretString) -> Self
Converts to this type from the input type.
impl Eq for AccessKey
Auto Trait Implementations§
impl Freeze for AccessKey
impl RefUnwindSafe for AccessKey
impl Send for AccessKey
impl Sync for AccessKey
impl Unpin for AccessKey
impl UnwindSafe for AccessKey
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