summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-openapi/examples/server_lib/server.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-11-19 12:19:38 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-11-19 14:55:15 -0800
commit40b5d40bed9e20e5c7a40d1741601a8317e078d8 (patch)
tree67c46917c2d2be2dc4d30543656a39ca5a3c014e /rust/fatcat-openapi/examples/server_lib/server.rs
parentba4a85cf2ee51d775137541944e2e9d24b2e1bc9 (diff)
downloadfatcat-40b5d40bed9e20e5c7a40d1741601a8317e078d8.tar.gz
fatcat-40b5d40bed9e20e5c7a40d1741601a8317e078d8.zip
codegen rust schema crate
Diffstat (limited to 'rust/fatcat-openapi/examples/server_lib/server.rs')
-rw-r--r--rust/fatcat-openapi/examples/server_lib/server.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/rust/fatcat-openapi/examples/server_lib/server.rs b/rust/fatcat-openapi/examples/server_lib/server.rs
index 6b681c7e..56b82cc5 100644
--- a/rust/fatcat-openapi/examples/server_lib/server.rs
+++ b/rust/fatcat-openapi/examples/server_lib/server.rs
@@ -818,13 +818,14 @@ impl Api for Server {
mag: Option<String>,
doaj: Option<String>,
dblp: Option<String>,
+ oai: Option<String>,
expand: Option<String>,
hide: Option<String>,
context: &Context,
) -> Box<Future<Item = LookupReleaseResponse, Error = ApiError> + Send> {
let context = context.clone();
println!(
- "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}",
+ "lookup_release({:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}, {:?}) - X-Span-ID: {:?}",
doi,
wikidata_qid,
isbn13,
@@ -837,6 +838,7 @@ impl Api for Server {
mag,
doaj,
dblp,
+ oai,
expand,
hide,
context.x_span_id.unwrap_or(String::from("<none>")).clone()