#[repr(align(16))]pub struct MarkPriceMessage {
pub event_type: String,
pub event_time: u64,
pub symbol: String,
pub mark_price: String,
pub index_price: String,
pub funding_rate: String,
pub next_funding_time: u64,
}Expand description
Mark price and funding rate from Binance Futures WebSocket
Fields§
§event_type: StringEvent type
event_time: u64Event time
symbol: StringSymbol
mark_price: StringMark price
index_price: StringIndex price
funding_rate: StringFunding rate
next_funding_time: u64Next funding time
Trait Implementations§
Source§impl Clone for MarkPriceMessage
impl Clone for MarkPriceMessage
Source§fn clone(&self) -> MarkPriceMessage
fn clone(&self) -> MarkPriceMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarkPriceMessage
impl Debug for MarkPriceMessage
Source§impl<'de> Deserialize<'de> for MarkPriceMessage
impl<'de> Deserialize<'de> for MarkPriceMessage
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 From<MarkPriceMessage> for ParsedMarkPrice
impl From<MarkPriceMessage> for ParsedMarkPrice
Source§fn from(msg: MarkPriceMessage) -> Self
fn from(msg: MarkPriceMessage) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MarkPriceMessage
impl RefUnwindSafe for MarkPriceMessage
impl Send for MarkPriceMessage
impl Sync for MarkPriceMessage
impl Unpin for MarkPriceMessage
impl UnwindSafe for MarkPriceMessage
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