2022-09-12 16:36:14 +01:00
|
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
|
2022-09-11 16:52:37 +01:00
|
|
|
mod html;
|
|
|
|
pub mod servek;
|
2022-09-12 16:36:14 +01:00
|
|
|
|
|
|
|
#[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,
|
2022-09-12 16:36:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Deserialize)]
|
|
|
|
pub struct CreateProfileRequest {
|
2022-09-13 01:35:05 +01:00
|
|
|
pub username: String,
|
|
|
|
pub password: String,
|
|
|
|
pub email: String,
|
2022-09-12 16:36:14 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Clone, Serialize)]
|
|
|
|
pub struct Login {
|
|
|
|
pub token: String,
|
|
|
|
}
|