From 4fcd0281c191d48907bcb2cef31b588ee57d7f56 Mon Sep 17 00:00:00 2001 From: phoenix Date: Sat, 5 Apr 2025 12:55:36 -0400 Subject: [PATCH] Saving changes --- src/user.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/user.rs b/src/user.rs index 2b5cb22..5095618 100644 --- a/src/user.rs +++ b/src/user.rs @@ -21,9 +21,11 @@ pub struct User { #[serde(skip_serializing_if = "String::is_empty")] pub lastname: String, pub email_verified: bool, + #[serde(with = "time::serde::rfc3339::option")] pub date_created: Option, #[serde(skip_serializing_if = "String::is_empty")] pub status: String, + #[serde(with = "time::serde::rfc3339::option")] pub last_login: Option, #[serde(skip_serializing_if = "init::is_uuid_nil")] pub salt_id: uuid::Uuid,