pub struct HistoricalResponse {
pub success: bool,
pub base: String,
pub date: String,
pub rates: HashMap<String, f64>,
}Expand description
Response from the /v1/history endpoint (single date).
Fields§
§success: boolWhether the request was successful.
base: StringThe base currency code.
date: StringThe date of the historical rates.
rates: HashMap<String, f64>Map of currency code to exchange rate.
Trait Implementations§
Source§impl Clone for HistoricalResponse
impl Clone for HistoricalResponse
Source§fn clone(&self) -> HistoricalResponse
fn clone(&self) -> HistoricalResponse
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HistoricalResponse
impl Debug for HistoricalResponse
Source§impl<'de> Deserialize<'de> for HistoricalResponse
impl<'de> Deserialize<'de> for HistoricalResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HistoricalResponse
impl RefUnwindSafe for HistoricalResponse
impl Send for HistoricalResponse
impl Sync for HistoricalResponse
impl Unpin for HistoricalResponse
impl UnsafeUnpin for HistoricalResponse
impl UnwindSafe for HistoricalResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more