pub struct AuthSecurityBuilder { /* private fields */ }Expand description
Builder for AuthSecurity with fluent API
Implementations§
Source§impl AuthSecurityBuilder
impl AuthSecurityBuilder
Sourcepub fn brute_force_config(self, config: BruteForceConfig) -> Self
pub fn brute_force_config(self, config: BruteForceConfig) -> Self
Set brute force configuration
Sourcepub fn password_strength_config(self, config: PasswordStrengthConfig) -> Self
pub fn password_strength_config(self, config: PasswordStrengthConfig) -> Self
Set password strength configuration
Sourcepub fn rate_limit_config(self, config: RateLimitConfig) -> Self
pub fn rate_limit_config(self, config: RateLimitConfig) -> Self
Set rate limit configuration
Sourcepub fn enable_audit_log(self, enable: bool) -> Self
pub fn enable_audit_log(self, enable: bool) -> Self
Enable or disable audit logging
Sourcepub fn build(self) -> AuthSecurity
pub fn build(self) -> AuthSecurity
Build the AuthSecurity instance
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuthSecurityBuilder
impl RefUnwindSafe for AuthSecurityBuilder
impl Send for AuthSecurityBuilder
impl Sync for AuthSecurityBuilder
impl Unpin for AuthSecurityBuilder
impl UnsafeUnpin for AuthSecurityBuilder
impl UnwindSafe for AuthSecurityBuilder
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> 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