billecta 1.14.0

Generated Billecta API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::error::Error;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error + 'static>> {
    let client = billecta::Client::from_env();

    let all_creditors = billecta::creditors::get_all_creditors(None, None, None, None)
        .send(&client)
        .await?;

    all_creditors
        .iter()
        .filter_map(|c| c.name.as_deref())
        .for_each(|name| println!("{name}"));

    Ok(())
}