Mohammed Naser | 5e52f87 | 2025-02-17 16:02:00 -0500 | [diff] [blame] | 1 | pub mod repository; |
2 | pub mod clients; | ||||
3 | |||||
4 | use async_trait::async_trait; | ||||
5 | use std::any::Any; | ||||
6 | use std::error::Error; | ||||
7 | |||||
8 | #[async_trait] | ||||
9 | pub trait RepositoryClient: Any + Send + Sync { | ||||
10 | async fn get_latest_commit( | ||||
11 | &self, | ||||
12 | repository: &crate::repository::Repository, | ||||
13 | branch: &str, | ||||
14 | ) -> Result<String, Box<dyn Error>>; | ||||
15 | } |