From 40b5d40bed9e20e5c7a40d1741601a8317e078d8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 19 Nov 2020 12:19:38 -0800 Subject: codegen rust schema crate --- rust/fatcat-openapi/examples/client.rs | 1 + rust/fatcat-openapi/examples/server_lib/server.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-openapi/examples') diff --git a/rust/fatcat-openapi/examples/client.rs b/rust/fatcat-openapi/examples/client.rs index 3fb833bd..eaaf26a6 100644 --- a/rust/fatcat-openapi/examples/client.rs +++ b/rust/fatcat-openapi/examples/client.rs @@ -560,6 +560,7 @@ fn main() { Some("mag_example".to_string()), Some("doaj_example".to_string()), Some("dblp_example".to_string()), + Some("oai_example".to_string()), Some("expand_example".to_string()), Some("hide_example".to_string()), ) 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, doaj: Option, dblp: Option, + oai: Option, expand: Option, hide: Option, context: &Context, ) -> Box + 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("")).clone() -- cgit v1.2.3