#[non_exhaustive]pub enum AuthEventKind<'a> {
Impersonate {
until: Timestamp,
},
StopImpersonating,
SignIn,
SignInFailed {
login: &'a str,
},
SecondFactorFailed,
SignOut,
CredentialsChanged,
PasswordReset,
EmailChanged,
TwoFactorEnabled,
TwoFactorDisabled,
RecoveryCodesReplaced,
}Expand description
Which AuthEvent auth recorded.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Impersonate
The actor starts acting as the target through
Auth::impersonation, until this time at the latest: a
session that runs out unseen records no stop.
Fields
until: TimestampStopImpersonating
The actor stops acting as the target: with the banner’s Stop button, by signing out, or on the first request after the lifetime ran out or the rule refused.
SignIn
The actor got a session on the panel: by password, by a provider, after their second
factor, by signing up, or from the app’s own sign-in under
Auth::external.
SignInFailed
A sign-in the panel refused, as login was typed. The actor is the account when its
password was right and it may not enter the panel, else None: a wrong password and an
unknown login read alike. An attempt past the throttle records nothing.
SecondFactorFailed
The actor’s password was right and the second-factor code they gave was wrong.
SignOut
The actor signed out of the panel.
CredentialsChanged
The actor changed something they sign in with, such as their password, on the profile
page: a ProfileUpdate::Credentials.
PasswordReset
The target’s password was set through a mailed reset link.
EmailChanged
The target’s address changed, by the link mailed to the new one.
TwoFactorEnabled
The actor turned two-factor sign-in on.
TwoFactorDisabled
The actor turned two-factor sign-in off.
RecoveryCodesReplaced
The actor replaced their recovery codes.
Trait Implementations§
Source§impl<'a> Clone for AuthEventKind<'a>
impl<'a> Clone for AuthEventKind<'a>
impl<'a> Copy for AuthEventKind<'a>
Source§impl<'a> Debug for AuthEventKind<'a>
impl<'a> Debug for AuthEventKind<'a>
impl<'a> Eq for AuthEventKind<'a>
Source§impl<'a> PartialEq for AuthEventKind<'a>
impl<'a> PartialEq for AuthEventKind<'a>
impl<'a> StructuralPartialEq for AuthEventKind<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthEventKind<'a>
impl<'a> RefUnwindSafe for AuthEventKind<'a>
impl<'a> Send for AuthEventKind<'a>
impl<'a> Sync for AuthEventKind<'a>
impl<'a> Unpin for AuthEventKind<'a>
impl<'a> UnsafeUnpin for AuthEventKind<'a>
impl<'a> UnwindSafe for AuthEventKind<'a>
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.