pub struct AuthManagerLayerBuilder<Backend, Sessions, C = PlaintextCookie>where
Backend: AuthnBackend,
Sessions: SessionStore,
C: CookieController,{ /* private fields */ }Expand description
Builder for the AuthManagerLayer.
Implementations§
Source§impl<Backend, Sessions, C> AuthManagerLayerBuilder<Backend, Sessions, C>where
Backend: AuthnBackend,
Sessions: SessionStore,
C: CookieController,
impl<Backend, Sessions, C> AuthManagerLayerBuilder<Backend, Sessions, C>where
Backend: AuthnBackend,
Sessions: SessionStore,
C: CookieController,
Sourcepub fn new(
backend: Backend,
session_manager_layer: SessionManagerLayer<Sessions, C>,
) -> AuthManagerLayerBuilder<Backend, Sessions, C>
pub fn new( backend: Backend, session_manager_layer: SessionManagerLayer<Sessions, C>, ) -> AuthManagerLayerBuilder<Backend, Sessions, C>
Create a new AuthManagerLayerBuilder with the provided access
controller.
Sourcepub fn with_data_key(
self,
data_key: &'static str,
) -> AuthManagerLayerBuilder<Backend, Sessions, C>
pub fn with_data_key( self, data_key: &'static str, ) -> AuthManagerLayerBuilder<Backend, Sessions, C>
Configure the data_key optional property of the builder. If not
configured it will default to “axum-login.data”.
Sourcepub fn build(self) -> AuthManagerLayer<Backend, Sessions, C>
pub fn build(self) -> AuthManagerLayer<Backend, Sessions, C>
Build the AuthManagerLayer.
Trait Implementations§
Source§impl<Backend, Sessions, C> Clone for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> Clone for AuthManagerLayerBuilder<Backend, Sessions, C>
Source§fn clone(&self) -> AuthManagerLayerBuilder<Backend, Sessions, C>
fn clone(&self) -> AuthManagerLayerBuilder<Backend, Sessions, C>
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<Backend, Sessions, C> Debug for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> Debug for AuthManagerLayerBuilder<Backend, Sessions, C>
Auto Trait Implementations§
impl<Backend, Sessions, C> Freeze for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> RefUnwindSafe for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> Send for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> Sync for AuthManagerLayerBuilder<Backend, Sessions, C>where
C: Sync,
impl<Backend, Sessions, C> Unpin for AuthManagerLayerBuilder<Backend, Sessions, C>
impl<Backend, Sessions, C> UnsafeUnpin for AuthManagerLayerBuilder<Backend, Sessions, C>where
Backend: UnsafeUnpin,
C: UnsafeUnpin,
impl<Backend, Sessions, C> UnwindSafe for AuthManagerLayerBuilder<Backend, Sessions, C>
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