3 个版本 (稳定)
新 1.0.1 | 2024 年 8 月 17 日 |
---|---|
0.1.1 | 2024 年 8 月 15 日 |
#472 in 网页编程
每月 395 次下载
250KB
6K SLoC
archaeologist
Artifacts 的 Rust 封装,Artifacts 是一个基于 API 的沙盒多人在线游戏。
由 openapi-generator 生成。
示例用法
use archaeologist::{
apis::{configuration::Configuration, my_account_api},
models::GoldBankResponseSchema,
};
#[tokio::main]
async fn main() {
let mut config = Configuration::new();
config.bearer_access_token = Some("YOUR_TOKEN".to_owned());
match my_account_api::get_bank_gold(&config).await {
Ok(GoldBankResponseSchema { data }) => println!("{:?}", data),
Err(err) => panic!("{}", err),
}
}
依赖关系
~7–19MB
~278K SLoC