pub struct OraclePrediction {
pub price: Usd,
pub time: u64,
}
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§
Source§impl Clone for OraclePrediction
impl Clone for OraclePrediction
Source§fn clone(&self) -> OraclePrediction
fn clone(&self) -> OraclePrediction
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 OraclePrediction
impl Debug for OraclePrediction
Source§impl<'de> Deserialize<'de> for OraclePrediction
impl<'de> Deserialize<'de> for OraclePrediction
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 OraclePrediction
impl RefUnwindSafe for OraclePrediction
impl Send for OraclePrediction
impl Sync for OraclePrediction
impl Unpin for OraclePrediction
impl UnwindSafe for OraclePrediction
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