Compare commits

..
Author SHA1 Message Date
phoenix 7e5758d0c9 cargo fmt
Rust Build / Check (pull_request) Successful in 35s
Release Tagging / release (pull_request) Successful in 38s
Rust Build / Rustfmt (pull_request) Successful in 30s
Rust Build / Test Suite (pull_request) Successful in 37s
Rust Build / Clippy (pull_request) Successful in 30s
Rust Build / build (pull_request) Successful in 33s
2026-05-29 09:55:50 -04:00
phoenix 85d326fa6d Added ServiceUser 2026-05-29 09:55:31 -04:00
+1 -17
View File
@@ -19,27 +19,11 @@ pub struct User {
#[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,
#[serde(with = "time::serde::rfc3339::option")]
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>,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct UserLoginHistory {
pub id: uuid::Uuid,
#[serde(with = "time::serde::rfc3339::option")]
pub login_time: Option<time::OffsetDateTime>,
pub user_id: uuid::Uuid,
}
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct ServiceUserLoginHistory {
pub id: uuid::Uuid,
#[serde(with = "time::serde::rfc3339::option")]
pub login_time: Option<time::OffsetDateTime>,
pub service_user_id: uuid::Uuid,
}