Skip to main content

gateway_annotations/
lib.rs

1#![doc(html_root_url = "https://docs.rs/gateway-annotations/0.1.1")]
2
3pub mod google {
4    pub mod api {
5        include!(concat!(env!("OUT_DIR"), "/google.api.rs"));
6    }
7    pub mod protobuf_custom {
8        include!(concat!(env!("OUT_DIR"), "/google.protobuf_custom.rs"));
9        pub mod compiler {
10            include!(concat!(
11                env!("OUT_DIR"),
12                "/google.protobuf_custom.compiler.rs"
13            ));
14        }
15    }
16}
17
18use google::api::HttpRule;
19use google::protobuf_custom::MethodOptions;
20
21pub fn get_http_rule(options: &MethodOptions) -> Option<HttpRule> {
22    options.http.clone()
23}