Struct lightspeed_auth::repository::pg::PgAuthRepositoryManager
source · pub struct PgAuthRepositoryManager<Id: IdType> { /* private fields */ }
Implementations§
source§impl<Id: IdType> PgAuthRepositoryManager<Id>
impl<Id: IdType> PgAuthRepositoryManager<Id>
pub fn new(c3p0: SqlxPgC3p0Pool) -> PgAuthRepositoryManager<u64>
pub fn new_with_id_generator( c3p0: SqlxPgC3p0Pool, id_generator: Arc<dyn PostgresIdGenerator<Id>> ) -> Self
Trait Implementations§
source§impl<Id: IdType> AuthRepositoryManager<Id> for PgAuthRepositoryManager<Id>
impl<Id: IdType> AuthRepositoryManager<Id> for PgAuthRepositoryManager<Id>
type Tx = PgTx
type C3P0 = SqlxPgC3p0Pool
type AuthAccountRepo = PgAuthAccountRepository<Id>
type TokenRepo = PgTokenRepository<Id>
fn c3p0(&self) -> &Self::C3P0
async fn start(&self) -> Result<(), LsError>
fn auth_account_repo(&self) -> Self::AuthAccountRepo
fn token_repo(&self) -> Self::TokenRepo
Auto Trait Implementations§
impl<Id> Freeze for PgAuthRepositoryManager<Id>
impl<Id> !RefUnwindSafe for PgAuthRepositoryManager<Id>
impl<Id> Send for PgAuthRepositoryManager<Id>
impl<Id> Sync for PgAuthRepositoryManager<Id>
impl<Id> Unpin for PgAuthRepositoryManager<Id>
impl<Id> !UnwindSafe for PgAuthRepositoryManager<Id>
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