use askama::Template; use serde::Deserialize; use crate::filters; use brass_db::models::Clothing; pub mod delete; pub mod get_edit; pub mod get_new; pub mod get_overview; pub mod get_read; pub mod post_edit; pub mod post_new; #[derive(Template)] #[template(path = "clothing/clothing_entry_edit.html")] struct EditClothingPartialTemplate { id: Option, name: Option, } #[derive(Template)] #[template(path = "clothing/clothing_entry_read.html")] struct ReadClothingPartialTemplate { c: Clothing, } #[derive(Deserialize)] struct NewOrEditClothingForm { name: String, }