From 0a637859a2e0f0b2015cf567af3bfeab7bbd58da Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 25 May 2018 18:00:59 -0700 Subject: file_release --- rust/fatcat-api/src/models.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rust/fatcat-api/src') 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>, + #[serde(rename = "url")] #[serde(skip_serializing_if = "Option::is_none")] pub url: Option, @@ -368,6 +372,7 @@ pub struct FileEntity { impl FileEntity { pub fn new() -> FileEntity { FileEntity { + releases: None, url: None, sha1: None, size: None, -- cgit v1.2.3