From 7410493aa0e1fa8dc2682e59276756e5c2123049 Mon Sep 17 00:00:00 2001 From: Samuel Shuert Date: Sun, 28 Jun 2026 19:20:08 +0000 Subject: [PATCH] chore: remove internal comments --- backend/src/models/user.rs | 12 ------------ backend/src/routes/auth.rs | 5 ----- backend/src/routes/system.rs | 3 --- 3 files changed, 20 deletions(-) diff --git a/backend/src/models/user.rs b/backend/src/models/user.rs index ad750f4..703b235 100644 --- a/backend/src/models/user.rs +++ b/backend/src/models/user.rs @@ -9,33 +9,23 @@ use uuid::Uuid; #[derive(Debug, Deserialize, Serialize, Clone)] pub struct User { - /// UUID of the User pub id: Uuid, - /// Full name of the User pub full_name: String, - /// Username of the User pub username: String, - /// Password of User (does not get sent in response) pub password: Option, } #[derive(Debug, Deserialize, Serialize)] pub struct UserNoPassword { - /// UUID of the User pub id: Uuid, - /// Full name of the User pub full_name: String, - /// Username of the User pub username: String, } #[derive(Debug, Deserialize, Serialize)] pub struct UserCreate { - /// Full name of the User pub full_name: String, - /// Username of the User pub username: String, - /// Password of User (does not get sent in response) pub password: String, } @@ -54,9 +44,7 @@ impl TryFrom for User { #[derive(Debug, Deserialize, Serialize)] pub struct UserUpdate { - /// Full name of the User pub full_name: Option, - /// Username of the User pub username: Option, } diff --git a/backend/src/routes/auth.rs b/backend/src/routes/auth.rs index 7fe6be2..3f2e8c8 100644 --- a/backend/src/routes/auth.rs +++ b/backend/src/routes/auth.rs @@ -42,9 +42,7 @@ pub async fn get_self( #[derive(Debug, Deserialize, Serialize)] struct LoginRequest { - /// Username of user username: String, - /// Password of user password: String, } @@ -86,11 +84,8 @@ pub async fn logout(identity: Option) -> Result, - /// Existing user password current_password: String, - /// New password new_password: String, } diff --git a/backend/src/routes/system.rs b/backend/src/routes/system.rs index b0784a9..5ebe706 100644 --- a/backend/src/routes/system.rs +++ b/backend/src/routes/system.rs @@ -5,11 +5,8 @@ use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] pub struct Health { - /// CPU usage as a percentage pub cpu: f64, - /// MEM usage in Bytes pub mem: u64, - /// Time from request recieved to request sent pub transport: String, } -- 2.51.2