MCPcopy Create free account
hub / github.com/dxx/feignhttp / filter_struct

Function filter_struct

codegen/src/func.rs:467–480  ·  view source on GitHub ↗
(arg: &FnArg)

Source from the content-addressed store, hash-verified

465}
466
467fn filter_struct(arg: &FnArg) -> bool {
468 let var_type = &arg.var_type;
469 match var_type {
470 syn::Type::Path(t) => {
471 let ty = t.to_token_stream().to_string();
472 is_support_struct(&ty.replace(" ", ""))
473 }
474 syn::Type::Reference(t) => {
475 let ty = t.to_token_stream().to_string();
476 is_support_struct(&ty.replace(" ", ""))
477 }
478 _ => false,
479 }
480}
481
482fn parse_header_values(s: &str) -> syn::Result<(Vec<String>, Vec<String>)> {
483 let (mut key_vec, mut value_vec) = (vec![], vec![]);

Callers 2

client_fn_implFunction · 0.70
fn_implFunction · 0.70

Calls 1

is_support_structFunction · 0.70

Tested by

no test coverage detected