From e6ab0bcd83fd2ab3ab47298022c885132eed9945 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 18 Sep 2026 17:58:29 -0400 Subject: [PATCH] UserProfile (#6) Reviewed-on: http://git.kundeng.us/phoenix/simodels/pulls/6 --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/user.rs | 8 ++++++++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 83daa63..428aaac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -478,7 +478,7 @@ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea" [[package]] name = "simodels" -version = "0.11.5" +version = "0.11.6" dependencies = [ "josekit", "rand", diff --git a/Cargo.toml b/Cargo.toml index 76bffe1..ec4f6fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "simodels" -version = "0.11.5" +version = "0.11.6" edition = "2024" rust-version = "1.95" description = "models used for the soaricarus project" diff --git a/src/user.rs b/src/user.rs index 8b95b2c..3ccc5ca 100644 --- a/src/user.rs +++ b/src/user.rs @@ -31,6 +31,14 @@ pub struct User { pub salt_id: uuid::Uuid, } +#[derive(Clone, Debug, Deserialize, Serialize, utoipa::ToSchema)] +pub struct UserProfile { + pub firstname: String, + pub lastname: String, + pub username: String, + pub email: String, +} + impl Default for User { fn default() -> Self { User {