Added ServiceUser

This commit is contained in:
2026-05-29 09:55:31 -04:00
parent 6975475330
commit 85d326fa6d
+12
View File
@@ -15,3 +15,15 @@ pub struct User {
#[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>,
}
#[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<time::OffsetDateTime>,
// When serializing to json, if empty do not populate
#[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>,
}