view example_crates/gcs_example/src/media_download.patch @ 218:eebc8dacb51c

improved generator
author Saber Haj Rabiee <saber.hajrabiee@gmail.com>
date Mon, 01 Mar 2021 01:14:05 -0800
parents 5a55862de3fb
children
line wrap: on
line source

--- a/src/storage_v1_types.rs
+++ b/src/storage_v1_types.rs
@@ -2070,6 +2070,8 @@
     /// Responses with Content-Type of application/json
     #[serde(rename = "json")]
     Json,
+    #[serde(rename = "media")]
+    Media,
 }
 
 impl std::default::Default for StorageParamsAlt {
@@ -2083,6 +2085,7 @@
         let s = match self {
             StorageParamsAlt::Undefined => write!(f, "undefined"),
             StorageParamsAlt::Json => write!(f, "json"),
+            StorageParamsAlt::Media => write!(f, "media"),
         };
         Ok(())
     }