pub struct AccountStats {
pub total_lockouts: u32,
pub recent_failed_attempts: u32,
pub is_locked: bool,
pub remaining_lock_duration: Option<Duration>,
pub associated_ips: Vec<String>,
}Expand description
Account statistics.
Fields§
§total_lockouts: u32Total number of times this account has been locked.
recent_failed_attempts: u32Number of recent failed attempts.
is_locked: boolWhether the account is currently locked.
remaining_lock_duration: Option<Duration>Remaining lock duration if temporarily locked.
associated_ips: Vec<String>IP addresses associated with failed attempts.
Trait Implementations§
Source§impl Clone for AccountStats
impl Clone for AccountStats
Source§fn clone(&self) -> AccountStats
fn clone(&self) -> AccountStats
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 AccountStats
impl Debug for AccountStats
Source§impl Default for AccountStats
impl Default for AccountStats
Source§fn default() -> AccountStats
fn default() -> AccountStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AccountStats
impl RefUnwindSafe for AccountStats
impl Send for AccountStats
impl Sync for AccountStats
impl Unpin for AccountStats
impl UnwindSafe for AccountStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more