aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:59:02 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:59:02 -0700
commit6f54d75f644ab5f0120637b1ceb13b16a4c8534d (patch)
treeaa1fb61cb79f8ec69455c31acd8296686f4e7f67 /rust/fatcat-api/src/models.rs
parent79807ca16c98c5f75e08624a514ba2afe585373a (diff)
downloadfatcat-6f54d75f644ab5f0120637b1ceb13b16a4c8534d.tar.gz
fatcat-6f54d75f644ab5f0120637b1ceb13b16a4c8534d.zip
fix date on release
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r--rust/fatcat-api/src/models.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index 8d3abe7d..e3ce33c3 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -442,6 +442,10 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub doi: Option<String>,
+ #[serde(rename = "date")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub date: Option<chrono::DateTime<chrono::Utc>>,
+
#[serde(rename = "release_type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub release_type: Option<String>,
@@ -491,6 +495,7 @@ impl ReleaseEntity {
pages: None,
volume: None,
doi: None,
+ date: None,
release_type: None,
container_id: None,
work_id: work_id,