pub struct TwoFactorUser {
pub two_factor_enabled: bool,
}Expand description
The column two-factor adds to user. Apps read it with
session.user.plugin::<TwoFactor, _>().
Fields§
§two_factor_enabled: boolOn after the first verified TOTP code, or right after enabling with
skip_verification_on_enable.
Implementations§
Source§impl TwoFactorUser
impl TwoFactorUser
pub const TWO_FACTOR_ENABLED: Col<TwoFactorUser, bool>
Trait Implementations§
Source§impl Clone for TwoFactorUser
impl Clone for TwoFactorUser
Source§impl Debug for TwoFactorUser
impl Debug for TwoFactorUser
impl Eq for TwoFactorUser
Source§impl Fields for TwoFactorUser
impl Fields for TwoFactorUser
Source§impl PartialEq for TwoFactorUser
impl PartialEq for TwoFactorUser
impl StructuralPartialEq for TwoFactorUser
Auto Trait Implementations§
impl Forget for TwoFactorUser
impl Freeze for TwoFactorUser
impl Move for TwoFactorUser
impl RefUnwindSafe for TwoFactorUser
impl Send for TwoFactorUser
impl Sync for TwoFactorUser
impl Unpin for TwoFactorUser
impl UnsafeUnpin for TwoFactorUser
impl UnwindSafe for TwoFactorUser
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