use askama::Template; use serde::{Deserialize, Serialize}; #[derive(Debug, Default, Template, Deserialize, Serialize)] #[template(path = "signup.html")] pub struct CreateUser { pub username: String, pub displayname: Option, pub email: Option, pub password: String, pub pw_verify: String, } #[derive(Debug, Default, Template, Deserialize, Serialize)] #[template(path = "login_post.html")] pub struct LoginPost { pub username: String, pub password: String, } #[derive(Debug, Default, Template, Deserialize, Serialize)] #[template(path = "login_get.html")] pub struct LoginGet { pub username: String, pub password: String, }