pub struct Price {
pub price: i64,
pub conf: u64,
pub exponent: i32,
pub publish_time: i64,
}
Expand description
A Pyth price.
The actual price is (price ± conf)* 10^exponent
. publish_time
may be used to check the recency of the price.
Fields§
§price: i64
§conf: u64
§exponent: i32
§publish_time: i64
Trait Implementations§
impl Copy for Price
impl StructuralPartialEq for Price
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnwindSafe for Price
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