Crate currencyapi_rs
source · [−]Expand description
currencyapi-rs
The Currencyapi crate provides an easy to use wrapper over the currencyapi api.
- Easy to use
- Async api calls with reqwest
- Ready deserialized structs of the currencyapi responses
- Manages authentication for you, just pass your api token once
Requirements
- Your own currencyapi api key
- Async runtime configured e.g. 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 and provide some information about your input.
Re-exports
pub use api::Currencyapi;
Modules
Module that contains the main Currencyapi struct
Enums
Contains all possible errors of the crate