pub struct UnlockMethod {
pub id: String,
pub kind: MethodKind,
pub label: String,
pub method_ref: String,
pub rp_id: String,
pub wrap: String,
pub added_ms: u64,
}Expand description
One unlock method: its kind, what names it, and the key wrapped to it.
Fields§
§id: String16 hex characters of SHA-256 over the wrap; set by EncryptionKeys.
kind: MethodKindWhat opens it.
label: StringThe person’s own words.
method_ref: StringThe SSH public key line, the credential id (base64url), the age1pq1…
key; empty for a recovery code.
rp_id: StringA security key’s WebAuthn relying party id.
wrap: StringThe armored age file.
added_ms: u64Unix ms; set by EncryptionKeys.
Implementations§
Source§impl UnlockMethod
impl UnlockMethod
Sourcepub fn from_line(m: MethodLine) -> Result<UnlockMethod>
pub fn from_line(m: MethodLine) -> Result<UnlockMethod>
From the forge door’s line (gunnar-user-key).
Sourcepub fn to_line(&self) -> MethodLine
pub fn to_line(&self) -> MethodLine
As the forge door’s line.
Trait Implementations§
Source§impl Clone for UnlockMethod
impl Clone for UnlockMethod
Source§impl Debug for UnlockMethod
impl Debug for UnlockMethod
Source§impl<'de> Deserialize<'de> for UnlockMethod
impl<'de> Deserialize<'de> for UnlockMethod
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 UnlockMethod
Source§impl PartialEq for UnlockMethod
impl PartialEq for UnlockMethod
Source§impl Serialize for UnlockMethod
impl Serialize for UnlockMethod
impl StructuralPartialEq for UnlockMethod
Auto Trait Implementations§
impl Freeze for UnlockMethod
impl RefUnwindSafe for UnlockMethod
impl Send for UnlockMethod
impl Sync for UnlockMethod
impl Unpin for UnlockMethod
impl UnsafeUnpin for UnlockMethod
impl UnwindSafe for UnlockMethod
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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