wx_mini_api

Crates.iowx_mini_api
lib.rswx_mini_api
version0.1.27
sourcesrc
created_at2024-07-26 03:26:29.596113
updated_at2024-07-26 03:26:29.596113
description微信小程序api wasm接口
homepage
repositoryhttps://github.com/zomem/wx_mini_api
max_upload_size
id1315740
size52,286
(zomem)

documentation

README

微信小程序 api wasm 封装

微信小程序 请求使用示例

    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();
Commit count: 0

cargo fmt