pub struct IndexPrice {
pub info: Option<Value>,
pub symbol: String,
pub index_price: f64,
pub timestamp: i64,
}Expand description
Index price information.
Represents the index price for a trading pair, typically used as a reference for mark price calculations in derivatives markets.
Fields§
§info: Option<Value>Raw API response data.
symbol: StringTrading pair symbol.
index_price: f64Index price value.
timestamp: i64Timestamp 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 · 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 IndexPrice
impl Debug for IndexPrice
Source§impl Default for IndexPrice
impl Default for IndexPrice
Source§fn default() -> IndexPrice
fn default() -> IndexPrice
Returns the “default value” for a type. Read more
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 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
Auto Trait Implementations§
impl Freeze for IndexPrice
impl RefUnwindSafe for IndexPrice
impl Send for IndexPrice
impl Sync for IndexPrice
impl Unpin 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