pub struct TotpConfig {
pub secret: String,
pub algorithm: TotpAlgorithm,
pub digits: u32,
pub period: u32,
pub issuer: String,
pub account_name: String,
}Expand description
MFA TOTP configuration
Fields§
§secret: String§algorithm: TotpAlgorithm§digits: u32§period: u32§issuer: String§account_name: StringTrait Implementations§
Source§impl Clone for TotpConfig
impl Clone for TotpConfig
Source§fn clone(&self) -> TotpConfig
fn clone(&self) -> TotpConfig
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 TotpConfig
impl Debug for TotpConfig
Source§impl<'de> Deserialize<'de> for TotpConfig
impl<'de> Deserialize<'de> for TotpConfig
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 TotpConfig
impl RefUnwindSafe for TotpConfig
impl Send for TotpConfig
impl Sync for TotpConfig
impl Unpin for TotpConfig
impl UnwindSafe for TotpConfig
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