pub struct TwoFactorOptions {
pub issuer: Option<String>,
pub two_factor_table: String,
pub totp: TotpOptions,
pub otp: OtpOptions,
pub backup_codes: BackupCodeOptions,
pub skip_verification_on_enable: bool,
pub allow_passwordless: bool,
pub two_factor_cookie_max_age: u64,
pub trust_device_max_age: u64,
}Fields§
§issuer: Option<String>§two_factor_table: String§totp: TotpOptions§otp: OtpOptions§backup_codes: BackupCodeOptions§skip_verification_on_enable: bool§allow_passwordless: bool§trust_device_max_age: u64Trait Implementations§
Source§impl Clone for TwoFactorOptions
impl Clone for TwoFactorOptions
Source§fn clone(&self) -> TwoFactorOptions
fn clone(&self) -> TwoFactorOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TwoFactorOptions
impl !RefUnwindSafe for TwoFactorOptions
impl Send for TwoFactorOptions
impl Sync for TwoFactorOptions
impl Unpin for TwoFactorOptions
impl UnsafeUnpin for TwoFactorOptions
impl !UnwindSafe for TwoFactorOptions
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