Struct alphavantage::exchange_rate::ExchangeRate [−][src]
pub struct ExchangeRate { pub from: Currency, pub to: Currency, pub rate: f64, pub date: DateTime<Tz>, }
Represents the exchange rate for a currency pair.
Fields
from: Currency
Currency to get the exchange rate for.
to: Currency
Destination currency for the exchange rate.
rate: f64
Value of the exchange rate.
date: DateTime<Tz>
Date the exchange rate corresponds to.
Trait Implementations
impl Debug for ExchangeRate
[src]
impl Debug for ExchangeRate
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ExchangeRate
[src]
impl PartialEq for ExchangeRate
fn eq(&self, other: &ExchangeRate) -> bool
[src]
fn eq(&self, other: &ExchangeRate) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExchangeRate) -> bool
[src]
fn ne(&self, other: &ExchangeRate) -> bool
This method tests for !=
.
Auto Trait Implementations
impl Send for ExchangeRate
impl Send for ExchangeRate
impl Sync for ExchangeRate
impl Sync for ExchangeRate