pub struct TotpOptions { /* private fields */ }Implementations§
Source§impl TotpOptions
impl TotpOptions
pub fn storage(&self) -> Option<&SecretLocation>
pub fn secret(&self) -> Option<&String>
pub fn algorithm(&self) -> TokenAlgorithm
pub fn new_config_stored_secret( secret: String, algorithm: TokenAlgorithm, ) -> Self
pub fn new_keychain_stored_secret(algorithm: TokenAlgorithm) -> Self
Trait Implementations§
Source§impl Clone for TotpOptions
impl Clone for TotpOptions
Source§fn clone(&self) -> TotpOptions
fn clone(&self) -> TotpOptions
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 moreSource§impl Debug for TotpOptions
impl Debug for TotpOptions
Source§impl<'de> Deserialize<'de> for TotpOptions
impl<'de> Deserialize<'de> for TotpOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TotpOptions
impl RefUnwindSafe for TotpOptions
impl Send for TotpOptions
impl Sync for TotpOptions
impl Unpin for TotpOptions
impl UnwindSafe for TotpOptions
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