1 stable release

Uses new Rust 2024

new 1.0.1 Apr 22, 2025

#251 in HTTP client

Apache-2.0

21KB
280 lines

Yookassa-rs

Simple wrapper around yookassa api

Usage:

use yookassa_rs::prelude::*;
use yookassa_rs::models::*;

#[tokio::main]
async fn main() {

    let shop_id = "1045131";
    let secret_key = "test_1HtqeKIGTQan9ODGjHdfIXTaTv1U3yTU0JDiqUbsGj4";

    let client = YookassaClientBuilder::default()
        .auth(BasicAuth::new(secret_key, shop_id))
        .build();

    let resp = client
        .request(Method::GET, "/payments")
        .send::<ResponsePayments>()
        .await;

    println!("{:?}", resp);
    
}

How to add to own project?

[dependencies]
yookassa_rs = { git = "https://github.com/olejaaaaaaaa/yookassa-rs" }

License

MIT Apache

Documentation

not ready yet

Dependencies

~8–19MB
~254K SLoC