Added serde macro
Rust Build / Check (pull_request) Successful in 35s
Release Tagging / release (pull_request) Successful in 38s
Rust Build / Rustfmt (pull_request) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / build (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 38s
Rust Build / Check (pull_request) Successful in 35s
Release Tagging / release (pull_request) Successful in 38s
Rust Build / Rustfmt (pull_request) Successful in 31s
Rust Build / Test Suite (pull_request) Successful in 36s
Rust Build / build (pull_request) Successful in 30s
Rust Build / Clippy (pull_request) Successful in 38s
This commit is contained in:
@@ -21,6 +21,7 @@ pub struct ServiceUser {
|
|||||||
pub id: uuid::Uuid,
|
pub id: uuid::Uuid,
|
||||||
pub username: String,
|
pub username: String,
|
||||||
pub passphrase: String,
|
pub passphrase: String,
|
||||||
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
pub created: Option<time::OffsetDateTime>,
|
pub created: Option<time::OffsetDateTime>,
|
||||||
// When serializing to json, if empty do not populate
|
// When serializing to json, if empty do not populate
|
||||||
#[serde(with = "time::serde::rfc3339::option")]
|
#[serde(with = "time::serde::rfc3339::option")]
|
||||||
|
|||||||
Reference in New Issue
Block a user