From 85d326fa6dce964ae592010b9938055308b446d9 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 29 May 2026 09:55:31 -0400 Subject: [PATCH] Added ServiceUser --- src/user/mod.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/user/mod.rs b/src/user/mod.rs index 5de18e2..56941f6 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -15,3 +15,15 @@ pub struct User { #[serde(with = "time::serde::rfc3339::option")] pub last_login: Option, } + +#[derive(Clone, Debug, Default, Deserialize, Serialize)] +pub struct ServiceUser { + pub id: uuid::Uuid, + // TODO: Remove the omitempty tags at a later point + pub username: String, + pub passphrase: String, + pub created: Option, + // When serializing to json, if empty do not populate + #[serde(with = "time::serde::rfc3339::option")] + pub last_login: Option, +}