fakturoid.cz Rust API
The Rust interface to online accounting service Fakturoid.
This library is developed and maintained by Josef Rokos (pepa@bukova.info). It is unoficial and no support from Fakturoid team can be claimed.
Features
- Account detail
- Subjects: create, update, delete, list, filters and fulltext
- Invoices: create, update, delete, list, filters and fulltext, invoice actions
Examples
This library is asynchronous, so you will need Tokio to execute library methods.
Cargo.toml
could look like this:
[]
= "0.1.2"
= { = "0.2", = ["full"]}
Get object detail
use Subject;
use *;
use Fakturoid;
async
Update object
All fields of model structs has type Option<...>
. If some field will have None
value this field will not be serialized,
so you can create new struct of given type and set only fields which you want update:
use Subject;
use *;
use Fakturoid;
async
Updated object will be returned in case of success. You can create new objects in similar way:
use Subject;
use *;
use Fakturoid;
async
Get list of subjects
Fakturoid.cz API returns all lists with more than 20 items in form pages of 20 items. This is represented by PagedResponse
struct. Pages can be accessed through methods of this struct:
...
let invoices = cli..await?;
println!;
let invoices = invoices.next_page.await?;
...