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> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more