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 {