Struct ethers_etherscan::stats::EthPrice
source · pub struct EthPrice {
pub ethbtc: f64,
pub ethbtc_timestamp: DateTime<Utc>,
pub ethusd: f64,
pub ethusd_timestamp: DateTime<Utc>,
}
Fields§
§ethbtc: f64
ETH-to-BTC exchange rate
ethbtc_timestamp: DateTime<Utc>
Last updated timestamp for the ETH-to-BTC exchange rate
ethusd: f64
ETH-to-USD exchange rate
ethusd_timestamp: DateTime<Utc>
Last updated timestamp for the ETH-to-USD exchange rate
Trait Implementations§
source§impl<'de> Deserialize<'de> for EthPrice
impl<'de> Deserialize<'de> for EthPrice
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 RefUnwindSafe for EthPrice
impl Send for EthPrice
impl Sync for EthPrice
impl Unpin for EthPrice
impl UnwindSafe for EthPrice
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