blob: 9034c26b788ba9a477e250a141c44e1e88b46c5c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
use anyhow::Error;
#[derive(Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize)]
#[serde(transparent)]
pub struct DateTime(chrono::DateTime<chrono::Utc>);
impl From<chrono::DateTime<chrono::Utc>> for DateTime {
fn from(dt: chrono::DateTime<chrono::Utc>) -> Self {
DateTime(dt)
}
}
|