summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:00:59 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-25 18:03:40 -0700
commit0a637859a2e0f0b2015cf567af3bfeab7bbd58da (patch)
tree993173f7b6b1597ae88eac472066c6bd8696a033 /rust/fatcat-api/src
parentca5dad8c6b9983c8e417310deac03173f815fa86 (diff)
downloadfatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.tar.gz
fatcat-0a637859a2e0f0b2015cf567af3bfeab7bbd58da.zip
file_release
Diffstat (limited to 'rust/fatcat-api/src')
-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 350e9698..8d3abe7d 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -327,6 +327,10 @@ impl ErrorResponse {
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct FileEntity {
+ #[serde(rename = "releases")]
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub releases: Option<Vec<String>>,
+
#[serde(rename = "url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
@@ -368,6 +372,7 @@ pub struct FileEntity {
impl FileEntity {
pub fn new() -> FileEntity {
FileEntity {
+ releases: None,
url: None,
sha1: None,
size: None,