pub struct DbUserAuthenticationRepository { /* private fields */ }
Implementations§
source§impl DbUserAuthenticationRepository
impl DbUserAuthenticationRepository
pub fn new(database: Arc<Box<dyn Database>>) -> Self
sourcepub async fn get_user_authentication_from_id(
&self,
user_id: &UserId
) -> Result<UserAuthentication, Error>
pub async fn get_user_authentication_from_id( &self, user_id: &UserId ) -> Result<UserAuthentication, Error>
Get user authentication data from user id.
Errors
This function will return an error if unable to get the user authentication data from the database.
Auto Trait Implementations§
impl !RefUnwindSafe for DbUserAuthenticationRepository
impl Send for DbUserAuthenticationRepository
impl Sync for DbUserAuthenticationRepository
impl Unpin for DbUserAuthenticationRepository
impl !UnwindSafe for DbUserAuthenticationRepository
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