pub mod git; use std::error::Error; use crate::{ messages::repository::{ CreateRepositoryRequest, CreateRepositoryResponse, RepositoryFileInspectRequest, RepositoryFileInspectionResponse, RepositoryInfoRequest, RepositoryIssueLabelsRequest, RepositoryIssueLabelsResponse, RepositoryIssuesCountRequest, RepositoryIssuesCountResponse, RepositoryIssuesRequest, RepositoryIssuesResponse, }, model::repository::RepositoryView, }; pub trait RepositoryBackend { fn create_repository( &mut self, request: &CreateRepositoryRequest, ) -> Result>; fn repository_info( &mut self, request: &RepositoryInfoRequest, ) -> Result>; fn repository_file_inspect( &mut self, request: &RepositoryFileInspectRequest, ) -> Result>; fn repository_issues_count( &mut self, request: &RepositoryIssuesCountRequest, ) -> Result>; fn repository_issue_labels( &mut self, request: &RepositoryIssueLabelsRequest, ) -> Result>; fn repository_issues( &mut self, request: &RepositoryIssuesRequest, ) -> Result>; }