summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-24 15:14:32 -0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-24 15:14:32 -0800
commitd7a4e4649e1da2c02ec8472173c79f7c708ce19b (patch)
treeb3b02f3ac7e652771a0e8485a180ff82b8e0f75f /rust/fatcat-api-spec/src/models.rs
parentb755695a38689258ccd99e98d0a737a233cf9874 (diff)
downloadfatcat-d7a4e4649e1da2c02ec8472173c79f7c708ce19b.tar.gz
fatcat-d7a4e4649e1da2c02ec8472173c79f7c708ce19b.zip
codegen release_year
Diffstat (limited to 'rust/fatcat-api-spec/src/models.rs')
-rw-r--r--rust/fatcat-api-spec/src/models.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs
index 5b9010cd..b8bd9a70 100644
--- a/rust/fatcat-api-spec/src/models.rs
+++ b/rust/fatcat-api-spec/src/models.rs
@@ -538,6 +538,10 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub doi: Option<String>,
+ #[serde(rename = "release_year")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub release_year: Option<i64>,
+
#[serde(rename = "release_date")]
#[serde(skip_serializing_if = "Option::is_none")]
pub release_date: Option<chrono::NaiveDate>,
@@ -619,6 +623,7 @@ impl ReleaseEntity {
isbn13: None,
wikidata_qid: None,
doi: None,
+ release_year: None,
release_date: None,
release_status: None,
release_type: None,