pub struct LatestResponse {
pub success: bool,
pub base: String,
pub date: String,
pub rates: HashMap<String, f64>,
}Expand description
Response from the /v1/latest endpoint.
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.
Trait Implementations§
Source§impl Clone for LatestResponse
impl Clone for LatestResponse
Source§fn clone(&self) -> LatestResponse
fn clone(&self) -> LatestResponse
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 LatestResponse
impl Debug for LatestResponse
Source§impl<'de> Deserialize<'de> for LatestResponse
impl<'de> Deserialize<'de> for LatestResponse
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 LatestResponse
impl RefUnwindSafe for LatestResponse
impl Send for LatestResponse
impl Sync for LatestResponse
impl Unpin for LatestResponse
impl UnsafeUnpin for LatestResponse
impl UnwindSafe for LatestResponse
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