Struct lightspeed_auth::AuthModule
source · [−]pub struct AuthModule<RepoManager: AuthRepositoryManager> {
pub auth_config: AuthConfig,
pub repo_manager: RepoManager,
pub password_codec: Arc<PasswordCodecService>,
pub auth_account_service: Arc<AuthAccountService<RepoManager>>,
pub token_service: Arc<TokenService<RepoManager>>,
}
Fields
auth_config: AuthConfig
repo_manager: RepoManager
password_codec: Arc<PasswordCodecService>
auth_account_service: Arc<AuthAccountService<RepoManager>>
token_service: Arc<TokenService<RepoManager>>
Implementations
sourceimpl<RepoManager: AuthRepositoryManager> AuthModule<RepoManager>
impl<RepoManager: AuthRepositoryManager> AuthModule<RepoManager>
pub fn new(repo_manager: RepoManager, auth_config: AuthConfig) -> Self
Trait Implementations
sourceimpl<RepoManager: Clone + AuthRepositoryManager> Clone for AuthModule<RepoManager>
impl<RepoManager: Clone + AuthRepositoryManager> Clone for AuthModule<RepoManager>
sourcefn clone(&self) -> AuthModule<RepoManager>
fn clone(&self) -> AuthModule<RepoManager>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<RepoManager: AuthRepositoryManager> Module for AuthModule<RepoManager>
impl<RepoManager: AuthRepositoryManager> Module for AuthModule<RepoManager>
Auto Trait Implementations
impl<RepoManager> RefUnwindSafe for AuthModule<RepoManager> where
RepoManager: RefUnwindSafe,
<RepoManager as AuthRepositoryManager>::AuthAccountRepo: RefUnwindSafe,
<RepoManager as AuthRepositoryManager>::C3P0: RefUnwindSafe,
<RepoManager as AuthRepositoryManager>::TokenRepo: RefUnwindSafe,
impl<RepoManager> Send for AuthModule<RepoManager>
impl<RepoManager> Sync for AuthModule<RepoManager>
impl<RepoManager> Unpin for AuthModule<RepoManager> where
RepoManager: Unpin,
impl<RepoManager> UnwindSafe for AuthModule<RepoManager> where
RepoManager: UnwindSafe,
<RepoManager as AuthRepositoryManager>::AuthAccountRepo: RefUnwindSafe,
<RepoManager as AuthRepositoryManager>::C3P0: RefUnwindSafe,
<RepoManager as AuthRepositoryManager>::TokenRepo: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more