2021-08-18 05:45:44 +00:00
|
|
|
use askama::Template;
|
|
|
|
use twitch_api2::helix::points::CustomReward;
|
2021-08-20 07:49:24 +00:00
|
|
|
use crate::app::config::Redemption;
|
2021-08-18 05:45:44 +00:00
|
|
|
|
|
|
|
#[derive(Template)]
|
|
|
|
#[template(path = "redemptions.html")]
|
|
|
|
pub struct RedemptionsTemplate {
|
|
|
|
pub redemptions: Vec<Redemption>,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Template)]
|
|
|
|
#[template(path = "add_redemption.html")]
|
|
|
|
pub struct AddRedemptionTemplate;
|
|
|
|
|
|
|
|
#[derive(Template)]
|
|
|
|
#[template(path = "list_redemptions.html")]
|
|
|
|
pub struct ListRedemptionsTemplate {
|
|
|
|
pub rewards: Vec<CustomReward>,
|
|
|
|
}
|
2022-03-19 02:02:10 +00:00
|
|
|
|
|
|
|
#[derive(Template)]
|
|
|
|
#[template(path = "create_redemption.html")]
|
|
|
|
pub struct CreateRedemptionTemplate;
|