fix: skip verified_at if not present

This commit is contained in:
əlemi 2024-07-15 21:18:30 +02:00
parent 0873ff46f8
commit 84f1cbd913
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -8,6 +8,8 @@ use crate::ext::{JsonVec, TypeName};
pub struct Field { pub struct Field {
pub name: String, pub name: String,
pub value: String, pub value: String,
#[serde(skip_serializing_if = "Option::is_none")]
pub verified_at: Option<ChronoDateTimeUtc>, pub verified_at: Option<ChronoDateTimeUtc>,
#[serde(rename = "type")] #[serde(rename = "type")]