User model changes
All checks were successful
Rust Build / Check (pull_request) Successful in 35s
Rust Build / Test Suite (pull_request) Successful in 30s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 35s
Rust Build / build (pull_request) Successful in 29s
All checks were successful
Rust Build / Check (pull_request) Successful in 35s
Rust Build / Test Suite (pull_request) Successful in 30s
Rust Build / Rustfmt (pull_request) Successful in 28s
Rust Build / Clippy (pull_request) Successful in 35s
Rust Build / build (pull_request) Successful in 29s
This commit is contained in:
12
src/user.rs
12
src/user.rs
@@ -21,12 +21,12 @@ pub struct User {
|
||||
#[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub lastname: String,
|
||||
pub email_verified: bool,
|
||||
#[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub date_created: String,
|
||||
// #[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub date_created: Option<time::OffsetDateTime>,
|
||||
#[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub status: String,
|
||||
#[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub last_login: String,
|
||||
// #[serde(skip_serializing_if = "String::is_empty")]
|
||||
pub last_login: Option<time::OffsetDateTime>,
|
||||
#[serde(skip_serializing_if = "init::is_uuid_nil")]
|
||||
pub salt_id: uuid::Uuid,
|
||||
}
|
||||
@@ -42,9 +42,9 @@ impl Default for User {
|
||||
firstname: String::new(),
|
||||
lastname: String::new(),
|
||||
email_verified: false,
|
||||
date_created: String::new(),
|
||||
date_created: None,
|
||||
status: String::new(),
|
||||
last_login: String::new(),
|
||||
last_login: None,
|
||||
salt_id: uuid::Uuid::nil(),
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user