Files
VoelinClient/third_party/schema-api/examples/inspect_schema.rs
T
faumaray 21261db8ef account
Signed-off-by: Faumaray <faumaray@gmail.com>
2026-10-04 19:11:37 +03:00

25 lines
701 B
Rust

fn main() {
let pool = schema_api::reflection::descriptor_pool();
for service in pool.services() {
println!("{}", service.full_name());
for method in service.methods() {
println!(
" {}({}{}) -> {}{}",
method.name(),
if method.is_client_streaming() {
"stream "
} else {
""
},
method.input().full_name(),
if method.is_server_streaming() {
"stream "
} else {
""
},
method.output().full_name(),
);
}
}
}