aboutsummaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/client.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/fatcat-api/src/client.rs')
-rw-r--r--rust/fatcat-api/src/client.rs40
1 files changed, 20 insertions, 20 deletions
diff --git a/rust/fatcat-api/src/client.rs b/rust/fatcat-api/src/client.rs
index 10d4287d..bc1992de 100644
--- a/rust/fatcat-api/src/client.rs
+++ b/rust/fatcat-api/src/client.rs
@@ -1035,15 +1035,15 @@ impl Api for Client {
Box::new(futures::done(result))
}
- fn get_container(&self, param_id: String, param_expend: Option<String>, context: &Context) -> Box<Future<Item = GetContainerResponse, Error = ApiError> + Send> {
+ fn get_container(&self, param_id: String, param_expand: Option<String>, context: &Context) -> Box<Future<Item = GetContainerResponse, Error = ApiError> + Send> {
// Query parameters
- let query_expend = param_expend.map_or_else(String::new, |query| format!("expend={expend}&", expend = query.to_string()));
+ let query_expand = param_expand.map_or_else(String::new, |query| format!("expand={expand}&", expand = query.to_string()));
let url = format!(
- "{}/v0/container/{id}?{expend}",
+ "{}/v0/container/{id}?{expand}",
self.base_path,
id = utf8_percent_encode(&param_id.to_string(), PATH_SEGMENT_ENCODE_SET),
- expend = utf8_percent_encode(&query_expend, QUERY_ENCODE_SET)
+ expand = utf8_percent_encode(&query_expand, QUERY_ENCODE_SET)
);
let hyper_client = (self.hyper_client)();
@@ -1171,15 +1171,15 @@ impl Api for Client {
Box::new(futures::done(result))
}
- fn get_creator(&self, param_id: String, param_expend: Option<String>, context: &Context) -> Box<Future<Item = GetCreatorResponse, Error = ApiError> + Send> {
+ fn get_creator(&self, param_id: String, param_expand: Option<String>, context: &Context) -> Box<Future<Item = GetCreatorResponse, Error = ApiError> + Send> {
// Query parameters
- let query_expend = param_expend.map_or_else(String::new, |query| format!("expend={expend}&", expend = query.to_string()));
+ let query_expand = param_expand.map_or_else(String::new, |query| format!("expand={expand}&", expand = query.to_string()));
let url = format!(
- "{}/v0/creator/{id}?{expend}",
+ "{}/v0/creator/{id}?{expand}",
self.base_path,
id = utf8_percent_encode(&param_id.to_string(), PATH_SEGMENT_ENCODE_SET),
- expend = utf8_percent_encode(&query_expend, QUERY_ENCODE_SET)
+ expand = utf8_percent_encode(&query_expand, QUERY_ENCODE_SET)
);
let hyper_client = (self.hyper_client)();
@@ -1533,15 +1533,15 @@ impl Api for Client {
Box::new(futures::done(result))
}
- fn get_file(&self, param_id: String, param_expend: Option<String>, context: &Context) -> Box<Future<Item = GetFileResponse, Error = ApiError> + Send> {
+ fn get_file(&self, param_id: String, param_expand: Option<String>, context: &Context) -> Box<Future<Item = GetFileResponse, Error = ApiError> + Send> {
// Query parameters
- let query_expend = param_expend.map_or_else(String::new, |query| format!("expend={expend}&", expend = query.to_string()));
+ let query_expand = param_expand.map_or_else(String::new, |query| format!("expand={expand}&", expand = query.to_string()));
let url = format!(
- "{}/v0/file/{id}?{expend}",
+ "{}/v0/file/{id}?{expand}",
self.base_path,
id = utf8_percent_encode(&param_id.to_string(), PATH_SEGMENT_ENCODE_SET),
- expend = utf8_percent_encode(&query_expend, QUERY_ENCODE_SET)
+ expand = utf8_percent_encode(&query_expand, QUERY_ENCODE_SET)
);
let hyper_client = (self.hyper_client)();
@@ -1669,15 +1669,15 @@ impl Api for Client {
Box::new(futures::done(result))
}
- fn get_release(&self, param_id: String, param_expend: Option<String>, context: &Context) -> Box<Future<Item = GetReleaseResponse, Error = ApiError> + Send> {
+ fn get_release(&self, param_id: String, param_expand: Option<String>, context: &Context) -> Box<Future<Item = GetReleaseResponse, Error = ApiError> + Send> {
// Query parameters
- let query_expend = param_expend.map_or_else(String::new, |query| format!("expend={expend}&", expend = query.to_string()));
+ let query_expand = param_expand.map_or_else(String::new, |query| format!("expand={expand}&", expand = query.to_string()));
let url = format!(
- "{}/v0/release/{id}?{expend}",
+ "{}/v0/release/{id}?{expand}",
self.base_path,
id = utf8_percent_encode(&param_id.to_string(), PATH_SEGMENT_ENCODE_SET),
- expend = utf8_percent_encode(&query_expend, QUERY_ENCODE_SET)
+ expand = utf8_percent_encode(&query_expand, QUERY_ENCODE_SET)
);
let hyper_client = (self.hyper_client)();
@@ -1914,15 +1914,15 @@ impl Api for Client {
Box::new(futures::done(result))
}
- fn get_work(&self, param_id: String, param_expend: Option<String>, context: &Context) -> Box<Future<Item = GetWorkResponse, Error = ApiError> + Send> {
+ fn get_work(&self, param_id: String, param_expand: Option<String>, context: &Context) -> Box<Future<Item = GetWorkResponse, Error = ApiError> + Send> {
// Query parameters
- let query_expend = param_expend.map_or_else(String::new, |query| format!("expend={expend}&", expend = query.to_string()));
+ let query_expand = param_expand.map_or_else(String::new, |query| format!("expand={expand}&", expand = query.to_string()));
let url = format!(
- "{}/v0/work/{id}?{expend}",
+ "{}/v0/work/{id}?{expand}",
self.base_path,
id = utf8_percent_encode(&param_id.to_string(), PATH_SEGMENT_ENCODE_SET),
- expend = utf8_percent_encode(&query_expend, QUERY_ENCODE_SET)
+ expand = utf8_percent_encode(&query_expand, QUERY_ENCODE_SET)
);
let hyper_client = (self.hyper_client)();