From bf63870c88b5a62a2aad08929465b37d8be474dc Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 9 May 2019 00:05:29 -0700 Subject: rust codegen --- rust/fatcat-api-spec/examples/server_lib/server.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rust/fatcat-api-spec/examples/server_lib') diff --git a/rust/fatcat-api-spec/examples/server_lib/server.rs b/rust/fatcat-api-spec/examples/server_lib/server.rs index 98f31485..2c67079f 100644 --- a/rust/fatcat-api-spec/examples/server_lib/server.rs +++ b/rust/fatcat-api-spec/examples/server_lib/server.rs @@ -848,13 +848,15 @@ impl Api for Server { core_id: Option, arxiv_id: Option, jstor_id: Option, + ark_id: Option, + mag_id: 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, @@ -863,6 +865,8 @@ impl Api for Server { core_id, arxiv_id, jstor_id, + ark_id, + mag_id, expand, hide, context.x_span_id.unwrap_or(String::from("")).clone() -- cgit v1.2.3