summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-12-14 17:36:08 +0800
committerBryan Newbold <bnewbold@robocracy.org>2018-12-14 17:36:08 +0800
commitf6b7f0afbee988f46ee8f23c8c81224c65407679 (patch)
tree01c2c61f4464d9e905a71134d2cb65342c0bb0c5 /rust/fatcat-api-spec/src/models.rs
parent9ca1bdfdba5de8191ad598ef0cc288eff4d50975 (diff)
downloadfatcat-f6b7f0afbee988f46ee8f23c8c81224c65407679.tar.gz
fatcat-f6b7f0afbee988f46ee8f23c8c81224c65407679.zip
rust codegen
Diffstat (limited to 'rust/fatcat-api-spec/src/models.rs')
-rw-r--r--rust/fatcat-api-spec/src/models.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/rust/fatcat-api-spec/src/models.rs b/rust/fatcat-api-spec/src/models.rs
index 6e374746..5b9010cd 100644
--- a/rust/fatcat-api-spec/src/models.rs
+++ b/rust/fatcat-api-spec/src/models.rs
@@ -514,9 +514,9 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub volume: Option<String>,
- #[serde(rename = "wikidata_qid")]
+ #[serde(rename = "core_id")]
#[serde(skip_serializing_if = "Option::is_none")]
- pub wikidata_qid: Option<String>,
+ pub core_id: Option<String>,
#[serde(rename = "pmcid")]
#[serde(skip_serializing_if = "Option::is_none")]
@@ -526,14 +526,14 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub pmid: Option<String>,
- #[serde(rename = "core_id")]
- #[serde(skip_serializing_if = "Option::is_none")]
- pub core_id: Option<String>,
-
#[serde(rename = "isbn13")]
#[serde(skip_serializing_if = "Option::is_none")]
pub isbn13: Option<String>,
+ #[serde(rename = "wikidata_qid")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub wikidata_qid: Option<String>,
+
#[serde(rename = "doi")]
#[serde(skip_serializing_if = "Option::is_none")]
pub doi: Option<String>,
@@ -613,11 +613,11 @@ impl ReleaseEntity {
pages: None,
issue: None,
volume: None,
- wikidata_qid: None,
+ core_id: None,
pmcid: None,
pmid: None,
- core_id: None,
isbn13: None,
+ wikidata_qid: None,
doi: None,
release_date: None,
release_status: None,