feignhttp-codegen 0.5.2

FeignHTTP macro support
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use feignhttp_codegen::post;

// error: two or more form parameters only supports scalar types, &str or String
//    |  pub async fn send_post(#[form] a: i32, #[form] b: &i32, #[form] f: F) -> Result<String> {}
//    |                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

struct F;

#[post("http://xxx")]
pub async fn send_post(#[form] a: i32, #[form] b: &i32, #[form] f: F) -> Result<String> {}

fn main() {}