Struct helium_api::models::OraclePrediction
source · [−]Expand description
An oracle prediction is inferred from the current oracle price and submitted oracle price reports.
Fields
price: Usd
The oracle price at the indicated block in Usd millis
time: u64
The epoch time when the price is expected to take hold
Trait Implementations
sourceimpl Clone for OraclePrediction
impl Clone for OraclePrediction
sourcefn clone(&self) -> OraclePrediction
fn clone(&self) -> OraclePrediction
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 OraclePrediction
impl Debug for OraclePrediction
sourceimpl<'de> Deserialize<'de> for OraclePrediction
impl<'de> Deserialize<'de> for OraclePrediction
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 OraclePrediction
impl Send for OraclePrediction
impl Sync for OraclePrediction
impl Unpin for OraclePrediction
impl UnwindSafe for OraclePrediction
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