1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
//! # currencyapi-rs
//!
//! The [Currencyapi][currencyapi] crate provides an easy to use wrapper over the
//! [currencyapi api][currencyapi_api].
//!
//! * Easy to use
//! * Async api calls with [reqwest][reqwest]
//! * Ready deserialized structs of the currencyapi responses
//! * Manages authentication for you, just pass your api token once
//!
//! ## Requirements
//! * Your own [currencyapi api key][currencyapi_api]
//! * Async runtime configured e.g. [tokio][tokio]
//!
//!
//!
//! ## Examples
//!
//!
//! ## Optional Features
//!
//!
//! ## Troubleshooting
//! If you get a ResponseParsingError during usage of the crate this is very likely
//! due to an invalid input where the currencyapi api will throw an error or
//! due to some unexpected values that were returned by the api. E.g. sometimes the api
//! will return `false` instead of a number for certain fields or other fields were missing.
//!
//! In this case please check if your input is valid and if so create a bug report on the
//! crate [repository][currencyapi_rs_repo] and provide some information about your input.
//!
//! [currencyapi]: ./api/struct.Currencyapi.html
//! [currencyapi_rs_repo]: https://github.com/everapihq/currencyapi-rs
//! [currencyapi_api]: https://creativecommons.currencyapi.de/
//! [reqwest]: https://crates.io/crates/reqwest
//! [tokio]: https://crates.io/crates/tokio
extern crate serde;
extern crate reqwest;
extern crate serde_json;
extern crate strum;
extern crate thiserror;
pub use Currencyapi;
pub use CurrencyapiError as Error;