pub type SingleRateResponse = LatestResponse;Expand description
Response from the /v1/latest endpoint when requesting a single pair.
Re-uses LatestResponse internally.
Aliased Type§
pub struct SingleRateResponse {
pub success: bool,
pub base: String,
pub date: String,
pub rates: HashMap<String, f64>,
}Fields§
§success: boolWhether the request was successful.
base: StringThe base currency code (e.g. “USD”).
date: StringISO-8601 date of the rates.
rates: HashMap<String, f64>Map of currency code to exchange rate.