From 2e4d6938bb3871cc95e123d2f03c1e20c776c84c Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Sun, 2 Feb 2025 00:23:02 -0800 Subject: [PATCH] remove pub --- src/user.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/user.rs b/src/user.rs index c06ae2f..face4dd 100644 --- a/src/user.rs +++ b/src/user.rs @@ -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, - pub display_name: Option, + username: String, + password: String, + email: Option, + display_name: Option, } #[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 = "")]