Crate monzo [] [src]

A library for using the Monzo API

This library wraps over the Monzo API in a future aware manner.

Example usage:

extern crate monzo;
extern crate tokio_core;

let mut core = tokio_core::reactor::Core::new().unwrap();
let monzo = monzo::Client::new(&core.handle(), "<access_token>");
let work = monzo.balance("<account_id>".into());
let response = core.run(work).unwrap();
println!("Balance: {} {}", response.balance, response.currency);
println!("Spent today: {}", response.spend_today);

Modules

errors

Errors for this crate using error_chain.

Structs

Account

Accounts represent a store of funds, and have a list of transactions.

Accounts

Response to the list accounts future.

Balance

Response to the balance future if successful.

Client

The main interface for this crate.

Error

Response to the futures in case of an error.

Transaction

Describes a transaction.

TransactionResponse

Response to the transaction future if successful.

Transactions

Response to the transactions future if successful.

Type Definitions

AccountId

Identifier for an account.

Currency

Holds an ISO 4217 currency code.

MerchantId

Identifier of a merchant.

TransactionId

Identifier for a transaction.