pub struct PricePoint {
pub timestamp: i64,
pub price: f64,
}Expand description
A price data point for historical charting.
Fields§
§timestamp: i64Unix timestamp in seconds.
price: f64Price in USD.
Trait Implementations§
Source§impl Clone for PricePoint
impl Clone for PricePoint
Source§impl Debug for PricePoint
impl Debug for PricePoint
Source§impl<'de> Deserialize<'de> for PricePoint
impl<'de> Deserialize<'de> for PricePoint
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 PricePoint
impl RefUnwindSafe for PricePoint
impl Send for PricePoint
impl Sync for PricePoint
impl Unpin for PricePoint
impl UnsafeUnpin for PricePoint
impl UnwindSafe for PricePoint
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