remove pub

This commit is contained in:
Greg Shuflin 2025-02-02 00:23:02 -08:00
parent b38c8c663c
commit 2e4d6938bb

View File

@ -39,24 +39,24 @@ impl User {
#[derive(Debug, Deserialize)]
#[serde(crate = "rocket::serde")]
pub struct NewUser {
pub username: String,
pub password: String,
pub email: Option<String>,
pub display_name: Option<String>,
username: String,
password: String,
email: Option<String>,
display_name: Option<String>,
}
#[derive(Debug, Deserialize)]
#[serde(crate = "rocket::serde")]
pub struct LoginCredentials {
pub username: String,
pub password: String,
username: String,
password: String,
}
#[derive(Debug, Serialize)]
#[serde(crate = "rocket::serde")]
pub struct LoginResponse {
pub user_id: Uuid,
pub username: String,
user_id: Uuid,
username: String,
}
#[post("/users", data = "<new_user>")]