pub struct GetStockTickerStatisticInfoRsp {
pub ret_code: Option<i32>,
pub date_list: Vec<u64>,
pub ticker_time: Option<u64>,
pub avg_price: Option<u64>,
pub trade_volume: Option<u64>,
pub trade_num: Option<u64>,
pub buy_volume: Option<u64>,
pub sell_volume: Option<u64>,
pub neutral_volume: Option<u64>,
pub last_close_price: Option<u64>,
}Fields§
§ret_code: Option<i32>0:成功; 其他失败
date_list: Vec<u64>交易日,请求时间为0时返回,其他为空
ticker_time: Option<u64>逐笔统计时间(时间戳)
avg_price: Option<u64>平均成交价 * 100000
trade_volume: Option<u64>成交量
trade_num: Option<u64>成交笔数
buy_volume: Option<u64>主买量
sell_volume: Option<u64>主卖量
neutral_volume: Option<u64>中性量
last_close_price: Option<u64>昨收
Implementations§
Source§impl GetStockTickerStatisticInfoRsp
impl GetStockTickerStatisticInfoRsp
Sourcepub fn ret_code(&self) -> i32
pub fn ret_code(&self) -> i32
Returns the value of ret_code, or the default value if ret_code is unset.
Sourcepub fn ticker_time(&self) -> u64
pub fn ticker_time(&self) -> u64
Returns the value of ticker_time, or the default value if ticker_time is unset.
Sourcepub fn avg_price(&self) -> u64
pub fn avg_price(&self) -> u64
Returns the value of avg_price, or the default value if avg_price is unset.
Sourcepub fn trade_volume(&self) -> u64
pub fn trade_volume(&self) -> u64
Returns the value of trade_volume, or the default value if trade_volume is unset.
Sourcepub fn trade_num(&self) -> u64
pub fn trade_num(&self) -> u64
Returns the value of trade_num, or the default value if trade_num is unset.
Sourcepub fn buy_volume(&self) -> u64
pub fn buy_volume(&self) -> u64
Returns the value of buy_volume, or the default value if buy_volume is unset.
Sourcepub fn sell_volume(&self) -> u64
pub fn sell_volume(&self) -> u64
Returns the value of sell_volume, or the default value if sell_volume is unset.
Sourcepub fn neutral_volume(&self) -> u64
pub fn neutral_volume(&self) -> u64
Returns the value of neutral_volume, or the default value if neutral_volume is unset.
Sourcepub fn last_close_price(&self) -> u64
pub fn last_close_price(&self) -> u64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Trait Implementations§
Source§impl Clone for GetStockTickerStatisticInfoRsp
impl Clone for GetStockTickerStatisticInfoRsp
Source§fn clone(&self) -> GetStockTickerStatisticInfoRsp
fn clone(&self) -> GetStockTickerStatisticInfoRsp
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for GetStockTickerStatisticInfoRsp
impl Message for GetStockTickerStatisticInfoRsp
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for GetStockTickerStatisticInfoRsp
impl PartialEq for GetStockTickerStatisticInfoRsp
Source§fn eq(&self, other: &GetStockTickerStatisticInfoRsp) -> bool
fn eq(&self, other: &GetStockTickerStatisticInfoRsp) -> bool
self and other values to be equal, and is used by ==.impl Eq for GetStockTickerStatisticInfoRsp
impl StructuralPartialEq for GetStockTickerStatisticInfoRsp
Auto Trait Implementations§
impl Freeze for GetStockTickerStatisticInfoRsp
impl RefUnwindSafe for GetStockTickerStatisticInfoRsp
impl Send for GetStockTickerStatisticInfoRsp
impl Sync for GetStockTickerStatisticInfoRsp
impl Unpin for GetStockTickerStatisticInfoRsp
impl UnsafeUnpin for GetStockTickerStatisticInfoRsp
impl UnwindSafe for GetStockTickerStatisticInfoRsp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.