Struct lightspeed_auth::LsAuthModule
source · pub struct LsAuthModule<Id: IdType + MaybeWeb, RepoManager: AuthRepositoryManager<Id>> {
pub auth_config: AuthConfig,
pub repo_manager: RepoManager,
pub password_codec: Arc<LsPasswordCodecService>,
pub auth_account_service: Arc<LsAuthAccountService<Id, RepoManager>>,
pub token_service: Arc<LsTokenService<Id, RepoManager>>,
}
Fields§
§auth_config: AuthConfig
§repo_manager: RepoManager
§password_codec: Arc<LsPasswordCodecService>
§auth_account_service: Arc<LsAuthAccountService<Id, RepoManager>>
§token_service: Arc<LsTokenService<Id, RepoManager>>
Implementations§
source§impl<Id: IdType + MaybeWeb, RepoManager: AuthRepositoryManager<Id>> LsAuthModule<Id, RepoManager>
impl<Id: IdType + MaybeWeb, RepoManager: AuthRepositoryManager<Id>> LsAuthModule<Id, RepoManager>
pub fn new(repo_manager: RepoManager, auth_config: AuthConfig) -> Self
Trait Implementations§
source§impl<Id: Clone + IdType + MaybeWeb, RepoManager: Clone + AuthRepositoryManager<Id>> Clone for LsAuthModule<Id, RepoManager>
impl<Id: Clone + IdType + MaybeWeb, RepoManager: Clone + AuthRepositoryManager<Id>> Clone for LsAuthModule<Id, RepoManager>
source§fn clone(&self) -> LsAuthModule<Id, RepoManager>
fn clone(&self) -> LsAuthModule<Id, RepoManager>
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<Id, RepoManager> Freeze for LsAuthModule<Id, RepoManager>where
RepoManager: Freeze,
impl<Id, RepoManager> RefUnwindSafe for LsAuthModule<Id, RepoManager>where
RepoManager: RefUnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::AuthAccountRepo: RefUnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::C3P0: RefUnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::TokenRepo: RefUnwindSafe,
impl<Id, RepoManager> Send for LsAuthModule<Id, RepoManager>
impl<Id, RepoManager> Sync for LsAuthModule<Id, RepoManager>
impl<Id, RepoManager> Unpin for LsAuthModule<Id, RepoManager>where
RepoManager: Unpin,
impl<Id, RepoManager> UnwindSafe for LsAuthModule<Id, RepoManager>where
RepoManager: UnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::AuthAccountRepo: RefUnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::C3P0: RefUnwindSafe,
<RepoManager as AuthRepositoryManager<Id>>::TokenRepo: 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