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§
Implementors§
impl TeamsRepository for Database
Implementation of TeamsRepository for the main Database type.
impl TeamsRepository for MockTeamsRepository
Repository trait defining operations for team data access.