summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api-spec/examples
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:05:21 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-05-10 15:05:21 -0700
commitaa6545c4125d800765fa2673a6b4a534cee54aad (patch)
tree735d728d396fa3c95d0e3c24578a02e923168be3 /rust/fatcat-api-spec/examples
parentb07f92545eaf112db735903dac8f7809fe62440a (diff)
downloadfatcat-aa6545c4125d800765fa2673a6b4a534cee54aad.tar.gz
fatcat-aa6545c4125d800765fa2673a6b4a534cee54aad.zip
codegen extid changes (rust)
Diffstat (limited to 'rust/fatcat-api-spec/examples')
-rw-r--r--rust/fatcat-api-spec/examples/client.rs10
-rw-r--r--rust/fatcat-api-spec/examples/server_lib/server.rs20
2 files changed, 15 insertions, 15 deletions
diff --git a/rust/fatcat-api-spec/examples/client.rs b/rust/fatcat-api-spec/examples/client.rs
index 0cb4a920..371d6ae2 100644
--- a/rust/fatcat-api-spec/examples/client.rs
+++ b/rust/fatcat-api-spec/examples/client.rs
@@ -593,11 +593,11 @@ fn main() {
Some("isbn13_example".to_string()),
Some("pmid_example".to_string()),
Some("pmcid_example".to_string()),
- Some("core_id_example".to_string()),
- Some("arxiv_id_example".to_string()),
- Some("jstor_id_example".to_string()),
- Some("ark_id_example".to_string()),
- Some("mag_id_example".to_string()),
+ Some("core_example".to_string()),
+ Some("arxiv_example".to_string()),
+ Some("jstor_example".to_string()),
+ Some("ark_example".to_string()),
+ Some("mag_example".to_string()),
Some("expand_example".to_string()),
Some("hide_example".to_string()),
)
diff --git a/rust/fatcat-api-spec/examples/server_lib/server.rs b/rust/fatcat-api-spec/examples/server_lib/server.rs
index 2c67079f..378b4285 100644
--- a/rust/fatcat-api-spec/examples/server_lib/server.rs
+++ b/rust/fatcat-api-spec/examples/server_lib/server.rs
@@ -845,11 +845,11 @@ impl Api for Server {
isbn13: Option<String>,
pmid: Option<String>,
pmcid: Option<String>,
- core_id: Option<String>,
- arxiv_id: Option<String>,
- jstor_id: Option<String>,
- ark_id: Option<String>,
- mag_id: Option<String>,
+ core: Option<String>,
+ arxiv: Option<String>,
+ jstor: Option<String>,
+ ark: Option<String>,
+ mag: Option<String>,
expand: Option<String>,
hide: Option<String>,
context: &Context,
@@ -862,11 +862,11 @@ impl Api for Server {
isbn13,
pmid,
pmcid,
- core_id,
- arxiv_id,
- jstor_id,
- ark_id,
- mag_id,
+ core,
+ arxiv,
+ jstor,
+ ark,
+ mag,
expand,
hide,
context.x_span_id.unwrap_or(String::from("<none>")).clone()