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: Duration,
pub trust_device_max_age: Duration,
}Fields§
§issuer: Option<String>§two_factor_table: StringPhysical database table name for two-factor secrets (two_factors by default).
totp: TotpOptions§otp: OtpOptions§backup_codes: BackupCodeOptions§skip_verification_on_enable: bool§allow_passwordless: bool§trust_device_max_age: DurationImplementations§
Source§impl TwoFactorOptions
impl TwoFactorOptions
pub fn builder() -> TwoFactorOptionsBuilder
Trait 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 !RefUnwindSafe for TwoFactorOptions
impl !UnwindSafe for TwoFactorOptions
impl Freeze for TwoFactorOptions
impl Send for TwoFactorOptions
impl Sync for TwoFactorOptions
impl Unpin for TwoFactorOptions
impl UnsafeUnpin 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