Crates.io | wx_mini_api |
lib.rs | wx_mini_api |
version | 0.1.27 |
source | src |
created_at | 2024-07-26 03:26:29.596113 |
updated_at | 2024-07-26 03:26:29.596113 |
description | 微信小程序api wasm接口 |
homepage | |
repository | https://github.com/zomem/wx_mini_api |
max_upload_size | |
id | 1315740 |
size | 52,286 |
微信小程序 请求使用示例
use wx_mini_api::prelude::*;
#[derive(Default, Serialize, Debug)]
#[serde(rename_all = "kebab-case")]
struct Header {
content_type: String,
}
let header = Header {
content_type: "application/json".to_string(),
};
let req: Request<serde_json::Value, serde_json::Value> = Request {
url: "your_url",
..Default::default()
};
let res: Response<serde_json::Value> = wx_request(req).await.unwrap();