pub struct AuthBuilder { /* private fields */ }
Expand description
Main builder for AuthFramework with fluent API
Implementations§
Source§impl AuthBuilder
impl AuthBuilder
Sourcepub fn security_preset(self, preset: SecurityPreset) -> Self
pub fn security_preset(self, preset: SecurityPreset) -> Self
Apply a security preset
Sourcepub fn performance_preset(self, preset: PerformancePreset) -> Self
pub fn performance_preset(self, preset: PerformancePreset) -> Self
Apply a performance preset
Sourcepub fn use_case_preset(self, preset: UseCasePreset) -> Self
pub fn use_case_preset(self, preset: UseCasePreset) -> Self
Apply a use case preset
Sourcepub fn with_jwt(self) -> JwtBuilder
pub fn with_jwt(self) -> JwtBuilder
Configure JWT authentication
Sourcepub fn with_oauth2(self) -> OAuth2Builder
pub fn with_oauth2(self) -> OAuth2Builder
Configure OAuth2 authentication
Sourcepub fn with_storage(self) -> StorageBuilder
pub fn with_storage(self) -> StorageBuilder
Configure storage backend
Sourcepub fn with_rate_limiting(self) -> RateLimitBuilder
pub fn with_rate_limiting(self) -> RateLimitBuilder
Configure rate limiting
Sourcepub fn with_security(self) -> SecurityBuilder
pub fn with_security(self) -> SecurityBuilder
Configure security settings
Sourcepub fn with_audit(self) -> AuditBuilder
pub fn with_audit(self) -> AuditBuilder
Configure audit logging
Sourcepub async fn build(self) -> Result<AuthFramework, AuthError>
pub async fn build(self) -> Result<AuthFramework, AuthError>
Build the authentication framework
Trait Implementations§
Source§impl Debug for AuthBuilder
impl Debug for AuthBuilder
Auto Trait Implementations§
impl Freeze for AuthBuilder
impl RefUnwindSafe for AuthBuilder
impl Send for AuthBuilder
impl Sync for AuthBuilder
impl Unpin for AuthBuilder
impl UnwindSafe for AuthBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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