aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-21 11:51:40 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-21 11:51:40 -0700
commit256b297886352fd0e732183e00d476bb32bc663e (patch)
tree29b36eacee790e6d2356c61ed25ed6f7250f578e /rust/fatcat-api/src/models.rs
parentcb63f207258071ade7f300dc63e9ed8cb98a1353 (diff)
downloadfatcat-256b297886352fd0e732183e00d476bb32bc663e.tar.gz
fatcat-256b297886352fd0e732183e00d476bb32bc663e.zip
no more default/mangled HTTP status codes
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r--rust/fatcat-api/src/models.rs11
1 files changed, 6 insertions, 5 deletions
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index 15247ce6..fd9e8658 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -463,6 +463,7 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub contribs: Option<Vec<models::ReleaseContrib>>,
+ /// Two-letter RFC1766/ISO639-1 language code, with extensions
#[serde(rename = "language")]
#[serde(skip_serializing_if = "Option::is_none")]
pub language: Option<String>,
@@ -471,14 +472,14 @@ pub struct ReleaseEntity {
#[serde(skip_serializing_if = "Option::is_none")]
pub publisher: Option<String>,
- #[serde(rename = "issue")]
- #[serde(skip_serializing_if = "Option::is_none")]
- pub issue: Option<String>,
-
#[serde(rename = "pages")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pages: Option<String>,
+ #[serde(rename = "issue")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub issue: Option<String>,
+
#[serde(rename = "volume")]
#[serde(skip_serializing_if = "Option::is_none")]
pub volume: Option<String>,
@@ -546,8 +547,8 @@ impl ReleaseEntity {
contribs: None,
language: None,
publisher: None,
- issue: None,
pages: None,
+ issue: None,
volume: None,
isbn13: None,
doi: None,