hoc/src/template.rs

22 lines
438 B
Rust
Raw Normal View History

2023-06-13 10:22:37 +02:00
use crate::service::FormValue;
2023-06-13 10:22:37 +02:00
#[derive(Clone, Copy)]
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> {
2023-06-13 10:22:37 +02:00
pub service: FormValue,
pub user: &'a str,
pub repo: &'a str,
pub branch: &'a str,
}