pub struct TimeSeriesResponse {
pub success: bool,
pub base: String,
pub start_date: String,
pub end_date: String,
pub rates: HashMap<String, HashMap<String, f64>>,
}Expand description
Response from the /v1/timeseries endpoint.
Fields§
§success: boolWhether the request was successful.
base: StringThe base currency code.
start_date: StringStart date of the series (inclusive).
end_date: StringEnd date of the series (inclusive).
rates: HashMap<String, HashMap<String, f64>>Map of date string to currency-rate map.
Trait Implementations§
Source§impl Clone for TimeSeriesResponse
impl Clone for TimeSeriesResponse
Source§fn clone(&self) -> TimeSeriesResponse
fn clone(&self) -> TimeSeriesResponse
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 TimeSeriesResponse
impl Debug for TimeSeriesResponse
Source§impl<'de> Deserialize<'de> for TimeSeriesResponse
impl<'de> Deserialize<'de> for TimeSeriesResponse
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 TimeSeriesResponse
impl RefUnwindSafe for TimeSeriesResponse
impl Send for TimeSeriesResponse
impl Sync for TimeSeriesResponse
impl Unpin for TimeSeriesResponse
impl UnsafeUnpin for TimeSeriesResponse
impl UnwindSafe for TimeSeriesResponse
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