hoc/src/template.rs

21 lines
419 B
Rust
Raw Normal View History

use crate::service::FormService;
2019-11-25 17:27:16 +01:00
pub struct RepoInfo<'a> {
pub commit_url: &'a str,
pub commits: u64,
2020-11-24 19:06:49 +01:00
pub base_url: &'a str,
2019-11-25 17:27:16 +01:00
pub head: &'a str,
pub hoc: u64,
pub hoc_pretty: &'a str,
pub path: &'a str,
pub url: &'a str,
pub branch: &'a str,
2019-11-25 17:27:16 +01:00
}
pub struct RepoGeneratorInfo<'a> {
pub service: FormService,
pub user: &'a str,
pub repo: &'a str,
pub branch: &'a str,
}