pub struct TickerResp {
pub symbol: Option<String>,
pub last: Option<String>,
pub buy: Option<String>,
pub sell: Option<String>,
pub high: Option<String>,
pub low: Option<String>,
pub volume: Option<String>,
pub quote_volume: Option<String>,
pub timestamp: Option<String>,
}Expand description
行情响应结构体
Fields§
§symbol: Option<String>交易对
last: Option<String>最新成交价
buy: Option<String>买一价
sell: Option<String>卖一价
high: Option<String>高价
low: Option<String>低价
volume: Option<String>成交量
quote_volume: Option<String>成交额
timestamp: Option<String>时间戳
Trait Implementations§
Source§impl Clone for TickerResp
impl Clone for TickerResp
Source§fn clone(&self) -> TickerResp
fn clone(&self) -> TickerResp
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 TickerResp
impl Debug for TickerResp
Source§impl<'de> Deserialize<'de> for TickerResp
impl<'de> Deserialize<'de> for TickerResp
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 TickerResp
impl RefUnwindSafe for TickerResp
impl Send for TickerResp
impl Sync for TickerResp
impl Unpin for TickerResp
impl UnsafeUnpin for TickerResp
impl UnwindSafe for TickerResp
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