use std::error::Error; use crate::{ messages::repository::{ CreateRepositoryRequest, CreateRepositoryResponse, RepositoryFileInspectRequest, RepositoryFileInspectionResponse, RepositoryInfoRequest, RepositoryIssueLabelsRequest, RepositoryIssueLabelsResponse, RepositoryIssuesCountRequest, RepositoryIssuesCountResponse, RepositoryIssuesRequest, RepositoryIssuesResponse, }, model::repository::RepositoryView, }; use super::{IssuesBackend, RepositoryBackend}; pub struct GitBackend; impl GitBackend { pub fn new() -> Self { Self } } impl RepositoryBackend for GitBackend { fn create_repository( &mut self, _request: &CreateRepositoryRequest, ) -> Result> { todo!() } fn repository_info( &mut self, _request: &RepositoryInfoRequest, ) -> Result> { todo!() } fn repository_file_inspect( &mut self, _request: &RepositoryFileInspectRequest, ) -> Result> { todo!() } } impl IssuesBackend for GitBackend { fn issues_count( &mut self, _request: &RepositoryIssuesCountRequest, ) -> Result> { todo!() } fn issue_labels( &mut self, _request: &RepositoryIssueLabelsRequest, ) -> Result> { todo!() } fn issues( &mut self, _request: &RepositoryIssuesRequest, ) -> Result> { todo!() } }