Struct axum_login::AuthManagerLayerBuilder
source ยท pub struct AuthManagerLayerBuilder<Backend: AuthnBackend, Sessions: SessionStore> { /* private fields */ }
Expand description
Builder for the AuthManagerLayer
.
Implementationsยง
sourceยงimpl<Backend: AuthnBackend, Sessions: SessionStore> AuthManagerLayerBuilder<Backend, Sessions>
impl<Backend: AuthnBackend, Sessions: SessionStore> AuthManagerLayerBuilder<Backend, Sessions>
sourcepub fn new(
backend: Backend,
session_manager_layer: SessionManagerLayer<Sessions>
) -> Self
pub fn new( backend: Backend, session_manager_layer: SessionManagerLayer<Sessions> ) -> Self
Create a new AuthManagerLayerBuilder
with the provided access
controller.
sourcepub fn with_data_key(
self,
data_key: &'static str
) -> AuthManagerLayerBuilder<Backend, Sessions>
pub fn with_data_key( self, data_key: &'static str ) -> AuthManagerLayerBuilder<Backend, Sessions>
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>
pub fn build(self) -> AuthManagerLayer<Backend, Sessions>
Build the AuthManagerLayer
.
Trait Implementationsยง
sourceยงimpl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore> Clone for AuthManagerLayerBuilder<Backend, Sessions>
impl<Backend: Clone + AuthnBackend, Sessions: Clone + SessionStore> Clone for AuthManagerLayerBuilder<Backend, Sessions>
sourceยงfn clone(&self) -> AuthManagerLayerBuilder<Backend, Sessions>
fn clone(&self) -> AuthManagerLayerBuilder<Backend, Sessions>
Returns a copy 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 moreAuto Trait Implementationsยง
impl<Backend, Sessions> RefUnwindSafe for AuthManagerLayerBuilder<Backend, Sessions>where
Backend: RefUnwindSafe,
Sessions: RefUnwindSafe,
impl<Backend, Sessions> Send for AuthManagerLayerBuilder<Backend, Sessions>
impl<Backend, Sessions> Sync for AuthManagerLayerBuilder<Backend, Sessions>
impl<Backend, Sessions> Unpin for AuthManagerLayerBuilder<Backend, Sessions>where
Backend: Unpin,
impl<Backend, Sessions> UnwindSafe for AuthManagerLayerBuilder<Backend, Sessions>where
Backend: UnwindSafe,
Sessions: RefUnwindSafe,
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