pub struct AuthConfig {
pub session_max_age: Duration,
pub session_idle: Duration,
pub invitation_ttl: Duration,
pub reset_ttl: Duration,
pub password_cost: PasswordCost,
pub login_per_email: Rate,
pub attempts_per_ip: Rate,
pub resets_per_email: Rate,
}Expand description
Lifetimes, cost and rate limits.
Fields§
§session_max_age: DurationA session ends this long after login, used or not.
session_idle: DurationA session ends after this long unused.
invitation_ttl: Duration§reset_ttl: Duration§password_cost: PasswordCost§login_per_email: RateLogin attempts per email.
attempts_per_ip: RateUnauthenticated attempts (login, setup, invitations, resets) per IP.
resets_per_email: RatePassword reset requests per email.
Trait Implementations§
Source§impl Clone for AuthConfig
impl Clone for AuthConfig
Source§impl Debug for AuthConfig
impl Debug for AuthConfig
Auto Trait Implementations§
impl Freeze for AuthConfig
impl RefUnwindSafe for AuthConfig
impl Send for AuthConfig
impl Sync for AuthConfig
impl Unpin for AuthConfig
impl UnsafeUnpin for AuthConfig
impl UnwindSafe for AuthConfig
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