Skip to main content

gateway_annotations/
lib.rs

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