pub struct TickerEvent {
pub exchange: Exchange,
pub symbol: Symbol,
pub timestamp: i64,
pub last_price: Decimal,
pub best_bid: Option<Decimal>,
pub best_ask: Option<Decimal>,
pub volume_24h: Decimal,
pub quote_volume_24h: Decimal,
pub price_change_24h: Option<Decimal>,
pub price_change_pct_24h: Option<Decimal>,
pub high_24h: Option<Decimal>,
pub low_24h: Option<Decimal>,
}Expand description
24-hour ticker statistics
Fields§
§exchange: Exchange§symbol: Symbol§timestamp: i64§last_price: Decimal§best_bid: Option<Decimal>§best_ask: Option<Decimal>§volume_24h: Decimal§quote_volume_24h: Decimal§price_change_24h: Option<Decimal>§price_change_pct_24h: Option<Decimal>§high_24h: Option<Decimal>§low_24h: Option<Decimal>Trait Implementations§
Source§impl Clone for TickerEvent
impl Clone for TickerEvent
Source§fn clone(&self) -> TickerEvent
fn clone(&self) -> TickerEvent
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 TickerEvent
impl Debug for TickerEvent
Source§impl<'de> Deserialize<'de> for TickerEvent
impl<'de> Deserialize<'de> for TickerEvent
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
Auto Trait Implementations§
impl Freeze for TickerEvent
impl RefUnwindSafe for TickerEvent
impl Send for TickerEvent
impl Sync for TickerEvent
impl Unpin for TickerEvent
impl UnsafeUnpin for TickerEvent
impl UnwindSafe for TickerEvent
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