Trait etwin_core::user::UserStore[][src]

pub trait UserStore: Send + Sync {
#[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
;
#[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
;
#[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
;
#[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
;
#[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
;
#[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
; }

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]

#[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]

#[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]

#[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]

#[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]

#[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]

Loading content...

Implementations on Foreign Types

impl<'a, T: 'a + UserStore + ?Sized> UserStore for &'a T where
    &'a T: Send + Sync
[src]

impl<T: UserStore + ?Sized> UserStore for Arc<T> where
    Arc<T>: Send + Sync
[src]

Loading content...

Implementors

Loading content...