summaryrefslogtreecommitdiff
path: root/src/dates.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2024-08-23 22:19:32 +0200
committerSanto Cariotti <santo@dcariotti.me>2024-08-23 22:19:32 +0200
commit7b9e9d2da5d85f23d43724fe2ca5012918ea54be (patch)
tree801ccae65d27fcf69bfca5db18265fbb7b5d7f21 /src/dates.rs
parentcb1aa9668a967fe875e716469ccf936ed8693ad3 (diff)
Add doc
Diffstat (limited to 'src/dates.rs')
-rw-r--r--src/dates.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/dates.rs b/src/dates.rs
index 87e6f5e..9c007e9 100644
--- a/src/dates.rs
+++ b/src/dates.rs
@@ -3,6 +3,7 @@ use chrono::{DateTime, Utc};
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
+/// A DateTime used as GraphQL type
pub struct GraphQLDate(pub DateTime<Utc>);
impl From<DateTime<Utc>> for GraphQLDate {