DateTime into i64.

This commit is contained in:
Mauro D
2022-05-19 14:56:26 +00:00
parent e2b33a90f3
commit a963f0caa7
+6
View File
@@ -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()
}
}