hoc/src/template.rs
2023-06-13 10:22:37 +02:00

22 lines
438 B
Rust

use crate::service::FormValue;
#[derive(Clone, Copy)]
pub struct RepoInfo<'a> {
pub commit_url: &'a str,
pub commits: u64,
pub base_url: &'a str,
pub head: &'a str,
pub hoc: u64,
pub hoc_pretty: &'a str,
pub path: &'a str,
pub url: &'a str,
pub branch: &'a str,
}
pub struct RepoGeneratorInfo<'a> {
pub service: FormValue,
pub user: &'a str,
pub repo: &'a str,
pub branch: &'a str,
}