pub struct MarketUpdateEvent {
pub market_slug: String,
pub last_price: Option<f64>,
pub volume_24h: Option<f64>,
pub price_change_24h: Option<f64>,
pub timestamp: f64,
}Expand description
Periodic market-level statistics update.
Fields§
§market_slug: String§last_price: Option<f64>§volume_24h: Option<f64>§price_change_24h: Option<f64>§timestamp: f64Trait Implementations§
Source§impl Clone for MarketUpdateEvent
impl Clone for MarketUpdateEvent
Source§fn clone(&self) -> MarketUpdateEvent
fn clone(&self) -> MarketUpdateEvent
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 MarketUpdateEvent
impl Debug for MarketUpdateEvent
Source§impl<'de> Deserialize<'de> for MarketUpdateEvent
impl<'de> Deserialize<'de> for MarketUpdateEvent
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 MarketUpdateEvent
impl RefUnwindSafe for MarketUpdateEvent
impl Send for MarketUpdateEvent
impl Sync for MarketUpdateEvent
impl Unpin for MarketUpdateEvent
impl UnsafeUnpin for MarketUpdateEvent
impl UnwindSafe for MarketUpdateEvent
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