pub struct RecoveryKey(/* private fields */);Expand description
32-byte recovery key. Displayed once at joy auth init. Stored
externally by the user; never persisted by Joy.
Implementations§
Source§impl RecoveryKey
impl RecoveryKey
Sourcepub fn to_display_string(&self) -> String
pub fn to_display_string(&self) -> String
Encode for one-time display (hex with joy_r_ prefix).
Sourcepub fn from_user_input(s: &str) -> Result<Self, JoyError>
pub fn from_user_input(s: &str) -> Result<Self, JoyError>
Parse a user-supplied recovery key. Accepts the joy_r_ prefix
or bare hex.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RecoveryKey
impl RefUnwindSafe for RecoveryKey
impl Send for RecoveryKey
impl Sync for RecoveryKey
impl Unpin for RecoveryKey
impl UnsafeUnpin for RecoveryKey
impl UnwindSafe for RecoveryKey
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