Skip to main content

Crate afinsp_rs

Crate afinsp_rs 

Source
Expand description

Afinsp Billing SDK for Rust.

The main entry point of this library is the API client api::Afinsp.

§Example

use afinsp_rs::api::{Afinsp, AfinspOptions};

#[tokio::main]
async fn main() -> Result<(), afinsp_rs::error::Error> {
    let client = Afinsp::new("your-api-key".to_string(), None);

    // List customers
    let customers = client.customers().list_customers(None).await?;
    println!("Found {} customers", customers.data.len());

    Ok(())
}

Modules§

api
error
Error types for the Afinsp SDK.
models
webhooks
Webhook signature verification.

Structs§

Configuration