(matcher: QueryMatcherDef)
| 368 | // --------------------------------------------------------------------------- |
| 369 | |
| 370 | fn matcher_def_to_proto(matcher: QueryMatcherDef) -> L7QueryMatcher { |
| 371 | match matcher { |
| 372 | QueryMatcherDef::Glob(glob) => L7QueryMatcher { glob, any: vec![] }, |
| 373 | QueryMatcherDef::Any(any) => L7QueryMatcher { |
| 374 | glob: String::new(), |
| 375 | any: any.any, |
| 376 | }, |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | fn matcher_proto_to_def(matcher: L7QueryMatcher) -> QueryMatcherDef { |
| 381 | if matcher.any.is_empty() { |
no outgoing calls
no test coverage detected