summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
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,