contact-form/src/context.rs

14 lines
283 B
Rust
Raw Normal View History

2022-10-29 15:12:43 +00:00
use serde::Serialize;
#[derive(Serialize)]
2022-10-29 15:55:00 +00:00
pub struct ContactFormContext<'a> {
2022-10-29 15:12:43 +00:00
pub path_prefix: &'a str,
pub was_validated: bool,
pub id: u16,
pub name: &'a str,
pub email: &'a str,
pub telefon: &'a str,
pub message: &'a str,
pub captcha: &'a str,
}