flabk/src/servek/mod.rs

29 lines
522 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
2022-09-11 16:52:37 +01:00
mod html;
pub mod servek;
#[derive(Debug, Clone, Serialize)]
2022-09-13 01:35:05 +01:00
struct Notification {
pub message: String,
pub tag_name: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct LoginRequest {
pub username: String,
pub password: String,
}
#[derive(Debug, Clone, Deserialize)]
pub struct CreateProfileRequest {
2022-09-13 01:35:05 +01:00
pub username: String,
pub password: String,
pub email: String,
}
#[derive(Debug, Clone, Serialize)]
pub struct Login {
pub token: String,
}