pub enum CredentialKind {
Vault,
Device,
Portable,
Recovery,
}Expand description
凭据来源。
决定该凭据是否参与自动扫描——这是性能与安全的权衡点。
Variants§
Vault
用户输入的浏览密码,Argon2id(密码, vault_salt)。参与扫描。
Device
由 OS 密钥库经生物识别解出的设备密钥。参与扫描。
Portable
单文件独立密码,salt 不是 vault_salt。不参与扫描。
Recovery
恢复码,熵已足够,直接作 KEK。不参与扫描。
Implementations§
Trait Implementations§
Source§impl Clone for CredentialKind
impl Clone for CredentialKind
impl Copy for CredentialKind
Source§impl Debug for CredentialKind
impl Debug for CredentialKind
impl Eq for CredentialKind
Source§impl From<CredentialKind> for SlotKind
impl From<CredentialKind> for SlotKind
Source§fn from(k: CredentialKind) -> Self
fn from(k: CredentialKind) -> Self
Converts to this type from the input type.
Source§impl Hash for CredentialKind
impl Hash for CredentialKind
Source§impl PartialEq for CredentialKind
impl PartialEq for CredentialKind
impl StructuralPartialEq for CredentialKind
Auto Trait Implementations§
impl Forget for CredentialKind
impl Freeze for CredentialKind
impl RefUnwindSafe for CredentialKind
impl Send for CredentialKind
impl Sync for CredentialKind
impl Unpin for CredentialKind
impl UnsafeUnpin for CredentialKind
impl UnwindSafe for CredentialKind
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