pub struct IndexPrice {
pub price: f64,
pub timestamp: i64,
}Expand description
Index price snapshot.
Typically the spot price underlying a perpetual or futures contract.
Fields§
§price: f64Index price value.
timestamp: i64Event timestamp in milliseconds.
Trait Implementations§
Source§impl Clone for IndexPrice
impl Clone for IndexPrice
Source§fn clone(&self) -> IndexPrice
fn clone(&self) -> IndexPrice
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 moreimpl Copy for IndexPrice
Source§impl Debug for IndexPrice
impl Debug for IndexPrice
Source§impl<'de> Deserialize<'de> for IndexPrice
impl<'de> Deserialize<'de> for IndexPrice
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexPrice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<IndexPrice, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for IndexPrice
impl PartialEq for IndexPrice
Source§fn eq(&self, other: &IndexPrice) -> bool
fn eq(&self, other: &IndexPrice) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for IndexPrice
impl Serialize for IndexPrice
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for IndexPrice
Auto Trait Implementations§
impl Freeze for IndexPrice
impl RefUnwindSafe for IndexPrice
impl Send for IndexPrice
impl Sync for IndexPrice
impl Unpin for IndexPrice
impl UnsafeUnpin for IndexPrice
impl UnwindSafe for IndexPrice
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