Use helper struct to reduce template parameters

This commit is contained in:
Valentin Brandl
2022-08-19 10:34:37 +02:00
parent dbbbdad3fa
commit d4248df45a
4 changed files with 28 additions and 17 deletions

View File

@@ -1,3 +1,5 @@
use crate::service::FormService;
pub struct RepoInfo<'a> {
pub commit_url: &'a str,
pub commits: u64,
@@ -9,3 +11,10 @@ pub struct RepoInfo<'a> {
pub url: &'a str,
pub branch: &'a str,
}
pub struct RepoGeneratorInfo<'a> {
pub service: FormService,
pub user: &'a str,
pub repo: &'a str,
pub branch: &'a str,
}