Struct helium_api::models::OraclePrice
source · [−]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
sourceimpl Clone for OraclePrice
impl Clone for OraclePrice
sourcefn clone(&self) -> OraclePrice
fn clone(&self) -> OraclePrice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for OraclePrice
impl Debug for OraclePrice
sourceimpl<'de> Deserialize<'de> for OraclePrice
impl<'de> Deserialize<'de> for OraclePrice
sourcefn 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 OraclePrice
impl Send for OraclePrice
impl Sync for OraclePrice
impl Unpin for OraclePrice
impl UnwindSafe for OraclePrice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more