pub struct RecoveryCode(/* private fields */);Expand description
A recovery code.
Implementations§
Source§impl RecoveryCode
impl RecoveryCode
Sourcepub fn parse(text: &str) -> Result<Self>
pub fn parse(text: &str) -> Result<Self>
Read a code as the admin typed it. Case, spaces and dashes don’t matter, and the letters people confuse with digits read as those digits. A typo fails the check rather than deriving another key.
Trait Implementations§
Source§impl Clone for RecoveryCode
impl Clone for RecoveryCode
Source§impl Debug for RecoveryCode
impl Debug for RecoveryCode
impl Eq for RecoveryCode
Source§impl PartialEq for RecoveryCode
impl PartialEq for RecoveryCode
impl StructuralPartialEq for RecoveryCode
Auto Trait Implementations§
impl Forget for RecoveryCode
impl Freeze for RecoveryCode
impl Move for RecoveryCode
impl RefUnwindSafe for RecoveryCode
impl Send for RecoveryCode
impl Sync for RecoveryCode
impl Unpin for RecoveryCode
impl UnsafeUnpin for RecoveryCode
impl UnwindSafe for RecoveryCode
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