pub struct HkShortInfo {
pub timestamp: Option<u64>,
pub shares_traded: Option<u64>,
pub turnover: Option<u64>,
pub short_sell_shares_traded_new: Option<u64>,
pub short_sell_turnover: Option<u64>,
pub price_open_new: Option<i64>,
pub price_close_new: Option<i64>,
pub last_close_price: Option<i64>,
pub daily_trade_avg_ratio: Option<i32>,
}Fields§
§timestamp: Option<u64>§turnover: Option<u64>§short_sell_turnover: Option<u64>§price_open_new: Option<i64>§price_close_new: Option<i64>§last_close_price: Option<i64>§daily_trade_avg_ratio: Option<i32>Implementations§
Source§impl HkShortInfo
impl HkShortInfo
Sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the value of timestamp, or the default value if timestamp is unset.
Returns the value of shares_traded, or the default value if shares_traded is unset.
Sourcepub fn turnover(&self) -> u64
pub fn turnover(&self) -> u64
Returns the value of turnover, or the default value if turnover is unset.
Sourcepub fn short_sell_turnover(&self) -> u64
pub fn short_sell_turnover(&self) -> u64
Returns the value of short_sell_turnover, or the default value if short_sell_turnover is unset.
Sourcepub fn last_close_price(&self) -> i64
pub fn last_close_price(&self) -> i64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Sourcepub fn price_open_new(&self) -> i64
pub fn price_open_new(&self) -> i64
Returns the value of price_open_new, or the default value if price_open_new is unset.
Sourcepub fn price_close_new(&self) -> i64
pub fn price_close_new(&self) -> i64
Returns the value of price_close_new, or the default value if price_close_new is unset.
Sourcepub fn daily_trade_avg_ratio(&self) -> i32
pub fn daily_trade_avg_ratio(&self) -> i32
Returns the value of daily_trade_avg_ratio, or the default value if daily_trade_avg_ratio is unset.
Returns the value of short_sell_shares_traded_new, or the default value if short_sell_shares_traded_new is unset.
Trait Implementations§
Source§impl Clone for HkShortInfo
impl Clone for HkShortInfo
Source§fn clone(&self) -> HkShortInfo
fn clone(&self) -> HkShortInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HkShortInfo
impl Debug for HkShortInfo
Source§impl Default for HkShortInfo
impl Default for HkShortInfo
Source§impl Hash for HkShortInfo
impl Hash for HkShortInfo
Source§impl Message for HkShortInfo
impl Message for HkShortInfo
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 HkShortInfo
impl PartialEq for HkShortInfo
impl Copy for HkShortInfo
impl Eq for HkShortInfo
impl StructuralPartialEq for HkShortInfo
Auto Trait Implementations§
impl Freeze for HkShortInfo
impl RefUnwindSafe for HkShortInfo
impl Send for HkShortInfo
impl Sync for HkShortInfo
impl Unpin for HkShortInfo
impl UnsafeUnpin for HkShortInfo
impl UnwindSafe for HkShortInfo
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.