pub struct IndexChartDataPoint {
pub timestamp: u64,
pub price: f64,
}Expand description
Index chart data point representing a single price observation.
The Deribit API returns chart data as arrays of [timestamp, price] tuples.
This struct provides a typed representation with proper field names.
Fields§
§timestamp: u64Timestamp in milliseconds since Unix epoch
price: f64Average index price at that timestamp
Implementations§
Trait Implementations§
Source§impl Clone for IndexChartDataPoint
impl Clone for IndexChartDataPoint
Source§fn clone(&self) -> IndexChartDataPoint
fn clone(&self) -> IndexChartDataPoint
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 IndexChartDataPoint
impl Debug for IndexChartDataPoint
Source§impl<'de> Deserialize<'de> for IndexChartDataPoint
impl<'de> Deserialize<'de> for IndexChartDataPoint
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
Source§impl PartialEq for IndexChartDataPoint
impl PartialEq for IndexChartDataPoint
Source§impl Serialize for IndexChartDataPoint
impl Serialize for IndexChartDataPoint
impl Copy for IndexChartDataPoint
impl StructuralPartialEq for IndexChartDataPoint
Auto Trait Implementations§
impl Freeze for IndexChartDataPoint
impl RefUnwindSafe for IndexChartDataPoint
impl Send for IndexChartDataPoint
impl Sync for IndexChartDataPoint
impl Unpin for IndexChartDataPoint
impl UnsafeUnpin for IndexChartDataPoint
impl UnwindSafe for IndexChartDataPoint
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