pub struct TotpSetup {
pub secret_base32: String,
pub otpauth_uri: String,
pub backup_codes: Vec<String>,
}Expand description
Returned when the user first enables TOTP.
Fields§
§secret_base32: StringBase32-encoded secret — store server-side and show once to user.
otpauth_uri: Stringotpauth://totp/... URI for QR code generation.
backup_codes: Vec<String>One-time backup codes (show to user, hash before storing).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TotpSetup
impl RefUnwindSafe for TotpSetup
impl Send for TotpSetup
impl Sync for TotpSetup
impl Unpin for TotpSetup
impl UnsafeUnpin for TotpSetup
impl UnwindSafe for TotpSetup
Blanket Implementations§
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