Jacob Kiers
3ea95e9ec9
This makes code navigation easier. Signed-off-by: Jacob Kiers <code@kiers.eu>
18 lines
305 B
Rust
18 lines
305 B
Rust
use anyhow::Result;
|
|
use bunq::BunqConfig;
|
|
|
|
fn main() -> Result<()> {
|
|
let cfg = BunqConfig::load()?;
|
|
|
|
let cfg = cfg.install()?;
|
|
|
|
let accs = cfg.monetary_accounts()?;
|
|
println!("{:#?}", accs);
|
|
|
|
let acc = &accs[0];
|
|
let ps = cfg.payments(acc)?;
|
|
println!("{:#?}", ps);
|
|
|
|
Ok(())
|
|
}
|