darkwing::database::team::repository

Trait TeamsRepository

source
pub trait TeamsRepository {
    // Required method
    fn get_team_by_id<'life0, 'async_trait>(
        &'life0 self,
        id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<Team>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Repository trait defining operations for team data access.

Required Methods§

source

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

Retrieves a team by its unique identifier.

Implementors§

source§

impl TeamsRepository for Database

Implementation of TeamsRepository for the main Database type.

source§

impl TeamsRepository for MockTeamsRepository

Repository trait defining operations for team data access.