pub struct MarkPricePoint {
pub timestamp: i64,
pub mark_price: f64,
}Expand description
Mark price history data point
Represents a single mark price value at a specific timestamp,
returned by /public/get_mark_price_history.
Fields§
§timestamp: i64Timestamp in milliseconds since Unix epoch
mark_price: f64Mark price value
Implementations§
Trait Implementations§
Source§impl Clone for MarkPricePoint
impl Clone for MarkPricePoint
Source§fn clone(&self) -> MarkPricePoint
fn clone(&self) -> MarkPricePoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MarkPricePoint
impl Debug for MarkPricePoint
Source§impl<'de> Deserialize<'de> for MarkPricePoint
impl<'de> Deserialize<'de> for MarkPricePoint
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 Display for MarkPricePoint
impl Display for MarkPricePoint
Source§impl PartialEq for MarkPricePoint
impl PartialEq for MarkPricePoint
Source§fn eq(&self, other: &MarkPricePoint) -> bool
fn eq(&self, other: &MarkPricePoint) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MarkPricePoint
impl Serialize for MarkPricePoint
impl StructuralPartialEq for MarkPricePoint
Auto Trait Implementations§
impl Freeze for MarkPricePoint
impl RefUnwindSafe for MarkPricePoint
impl Send for MarkPricePoint
impl Sync for MarkPricePoint
impl Unpin for MarkPricePoint
impl UnsafeUnpin for MarkPricePoint
impl UnwindSafe for MarkPricePoint
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