pub struct SpotTicker<'a> {
pub symbol: &'a str,
pub last_price: &'a str,
pub high_price_24h: &'a str,
pub low_price_24h: &'a str,
pub prev_price_24h: &'a str,
pub volume_24h: &'a str,
pub turnover_24h: &'a str,
pub price_24h_pcnt: &'a str,
pub usd_index_price: &'a str,
}Expand description
The spot ticker data. (snapshot only)
Fields§
§symbol: &'a strSymbol name.
last_price: &'a strLast price.
high_price_24h: &'a strThe highest price in the last 24 hours.
low_price_24h: &'a strThe lowest price in the last 24 hours.
prev_price_24h: &'a strPercentage change of market price relative to 24h.
volume_24h: &'a strVolume for 24h.
turnover_24h: &'a strTurnover for 24h.
price_24h_pcnt: &'a strPercentage change of market price relative to 24h.
usd_index_price: &'a strUSD index price. It can be empty.
Trait Implementations§
Source§impl<'a> Debug for SpotTicker<'a>
impl<'a> Debug for SpotTicker<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for SpotTicker<'a>
impl<'de: 'a, 'a> Deserialize<'de> for SpotTicker<'a>
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<'a> Freeze for SpotTicker<'a>
impl<'a> RefUnwindSafe for SpotTicker<'a>
impl<'a> Send for SpotTicker<'a>
impl<'a> Sync for SpotTicker<'a>
impl<'a> Unpin for SpotTicker<'a>
impl<'a> UnwindSafe for SpotTicker<'a>
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