mirror of
https://github.com/stalwartlabs/mail-parser.git
synced 2026-11-30 00:01:25 +00:00
DateTime into i64.
This commit is contained in:
@@ -1532,3 +1532,9 @@ impl<'x, 'de> Deserialize<'de> for MessageAttachment<'x> {
|
||||
panic!("Deserializing message attachments is not supported at this time.")
|
||||
}
|
||||
}
|
||||
|
||||
impl From<DateTime> for i64 {
|
||||
fn from(value: DateTime) -> Self {
|
||||
value.to_timestamp()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user