pub struct TotpSecret { /* private fields */ }Implementations§
Source§impl TotpSecret
impl TotpSecret
pub fn secret_key(&self) -> &str
pub fn hashing_algorithm(&self) -> &str
pub fn code_length(&self) -> u32
pub fn code_interval_seconds(&self) -> u32
pub fn enrollment_deadline(&self) -> SystemTime
pub fn qr_code_url( &self, account_name: Option<&str>, issuer: Option<&str>, ) -> String
Trait Implementations§
Source§impl Clone for TotpSecret
impl Clone for TotpSecret
Source§fn clone(&self) -> TotpSecret
fn clone(&self) -> TotpSecret
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TotpSecret
impl !RefUnwindSafe for TotpSecret
impl Send for TotpSecret
impl Sync for TotpSecret
impl Unpin for TotpSecret
impl !UnwindSafe for TotpSecret
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