pub struct OraclePrice {
pub price: Usd,
pub block: u64,
}
Expand description
An oracle price is inferred from oracle price reports on a regular basis by the blockchain. It determines the conversion rate between Hnt and Data Credits.
Fields§
§price: Usd
The oracle price at the indicated block in Usd millis
block: u64
The block height the oracle price was set at
Trait Implementations§
Source§impl Clone for OraclePrice
impl Clone for OraclePrice
Source§fn clone(&self) -> OraclePrice
fn clone(&self) -> OraclePrice
Returns a duplicate of the value. Read more
1.0.0 · 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 OraclePrice
impl Debug for OraclePrice
Source§impl<'de> Deserialize<'de> for OraclePrice
impl<'de> Deserialize<'de> for OraclePrice
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 OraclePrice
impl RefUnwindSafe for OraclePrice
impl Send for OraclePrice
impl Sync for OraclePrice
impl Unpin for OraclePrice
impl UnwindSafe for OraclePrice
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