fix: skip verified_at if not present
This commit is contained in:
parent
0873ff46f8
commit
84f1cbd913
1 changed files with 2 additions and 0 deletions
|
@ -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")]
|
||||||
|
|
Loading…
Reference in a new issue