diff --git a/src/user/mod.rs b/src/user/mod.rs index 463efdf..8d8c934 100644 --- a/src/user/mod.rs +++ b/src/user/mod.rs @@ -21,6 +21,7 @@ pub struct ServiceUser { pub id: uuid::Uuid, pub username: String, pub passphrase: String, + #[serde(with = "time::serde::rfc3339::option")] pub created: Option, // When serializing to json, if empty do not populate #[serde(with = "time::serde::rfc3339::option")]