49 lines
1.0 KiB
Rust
49 lines
1.0 KiB
Rust
// Copyright 2022 Oxide Computer Company
|
|
|
|
mod positional {
|
|
progenitor::generate_api!("../sample_openapi/keeper.json");
|
|
|
|
fn _ignore() {
|
|
let _ = Client::new("").enrol(&types::EnrolBody {
|
|
host: "".to_string(),
|
|
key: "".to_string(),
|
|
});
|
|
}
|
|
}
|
|
|
|
mod builder_untagged {
|
|
progenitor::generate_api!(
|
|
spec = "../sample_openapi/keeper.json",
|
|
interface = Builder,
|
|
tags = Merged,
|
|
);
|
|
|
|
fn _ignore() {
|
|
let _ = Client::new("")
|
|
.enrol()
|
|
.body(types::EnrolBody {
|
|
host: "".to_string(),
|
|
key: "".to_string(),
|
|
})
|
|
.send();
|
|
}
|
|
}
|
|
|
|
mod builder_tagged {
|
|
progenitor::generate_api!(
|
|
spec = "../sample_openapi/keeper.json",
|
|
interface = Builder,
|
|
tags = Separate,
|
|
);
|
|
|
|
fn _ignore() {
|
|
let _ = Client::new("")
|
|
.enrol()
|
|
.body(types::EnrolBody {
|
|
host: "".to_string(),
|
|
key: "".to_string(),
|
|
})
|
|
.send();
|
|
}
|
|
}
|