pub struct TotpCode {
pub code: String,
pub valid_for_secs: u64,
pub period_secs: u64,
}Expand description
One generated TOTP code plus its validity window, for display.
Fields§
§code: StringThe code digits (6–8 chars, or whatever the URI specifies).
valid_for_secs: u64Seconds this code remains valid.
period_secs: u64The TOTP period (usually 30s).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TotpCode
impl RefUnwindSafe for TotpCode
impl Send for TotpCode
impl Sync for TotpCode
impl Unpin for TotpCode
impl UnsafeUnpin for TotpCode
impl UnwindSafe for TotpCode
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