rust_version #31

Merged
phoenix merged 8 commits from rust_version into devel 2025-04-05 17:30:18 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 93b8a2b850 - Show all commits

View File

@@ -9,7 +9,7 @@ license = "MIT"
serde = { version = "1.0.218", features = ["derive"] }
serde_json = { version = "1.0.139" }
rand = { version = "0.9" }
time = { version = "0.3.41", features = ["macros", "serde"] }
time = { version = "0.3.41", features = ["formatting", "macros", "parsing", "serde"] }
uuid = { version = "1.16.0", features = ["v4", "serde"] }
[dev-dependencies]
tempfile = { version = "3.19.1" }

View File

@@ -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<time::OffsetDateTime>,
#[serde(skip_serializing_if = "String::is_empty")]
pub status: String,
#[serde(with = "time::serde::rfc3339::option")]
pub last_login: Option<time::OffsetDateTime>,
#[serde(skip_serializing_if = "init::is_uuid_nil")]
pub salt_id: uuid::Uuid,