darkwing::server::services::user_services

Trait UsersServiceTrait

source
pub trait UsersServiceTrait {
    // Required methods
    fn get_user_by_id<'life0, 'async_trait>(
        &'life0 self,
        user_id: u64,
    ) -> Pin<Box<dyn Future<Output = AppResult<ResponseUserDto>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_team_by_id<'life0, 'async_trait>(
        &'life0 self,
        team_id: i64,
    ) -> Pin<Box<dyn Future<Output = AppResult<ResponseTeamDto>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_fully_free_plan(&self, team: &ResponseTeamDto) -> bool;
    fn does_plan_allows_scenarios(&self, plan: Plan) -> bool;
}

Required Methods§

source

fn get_user_by_id<'life0, 'async_trait>( &'life0 self, user_id: u64, ) -> Pin<Box<dyn Future<Output = AppResult<ResponseUserDto>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn get_team_by_id<'life0, 'async_trait>( &'life0 self, team_id: i64, ) -> Pin<Box<dyn Future<Output = AppResult<ResponseTeamDto>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn is_fully_free_plan(&self, team: &ResponseTeamDto) -> bool

source

fn does_plan_allows_scenarios(&self, plan: Plan) -> bool

Implementors§