Trait etwin_core::user::UserStore [−][src]
Required methods
#[must_use]fn create_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_short_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn get_user_with_password<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn update_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
#[must_use]fn hard_delete_user<'life0, 'async_trait>(
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Implementations on Foreign Types
impl<'a, T: 'a + UserStore + ?Sized> UserStore for &'a T where
&'a T: Send + Sync,
[src]
&'a T: Send + Sync,
fn create_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_short_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_user_with_password<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn hard_delete_user<'life0, 'async_trait>(
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<T: UserStore + ?Sized> UserStore for Arc<T> where
Arc<T>: Send + Sync,
[src]
Arc<T>: Send + Sync,
fn create_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 CreateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<GetUserResult>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_short_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetShortUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUser>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn get_user_with_password<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 GetUserOptions
) -> Pin<Box<dyn Future<Output = Result<Option<ShortUserWithPassword>, Box<dyn Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn update_user<'life0, 'life1, 'async_trait>(
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
options: &'life1 UpdateUserOptions
) -> Pin<Box<dyn Future<Output = Result<CompleteSimpleUser, UpdateUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn hard_delete_user<'life0, 'async_trait>(
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
user_ref: UserIdRef
) -> Pin<Box<dyn Future<Output = Result<(), DeleteUserError>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,