pub struct HkShortInterestItem {
pub timestamp: Option<i64>,
pub timestamp_str: Option<String>,
pub close_price: Option<f64>,
pub last_close_price: Option<f64>,
pub aggregated_short: Option<u64>,
pub aggregated_short_ratio: Option<f64>,
}Expand description
港股空头持仓单条记录
Fields§
§timestamp: Option<i64>数据所在交易日时间戳(秒)
timestamp_str: Option<String>数据所在交易日字符串,格式 YYYY-MM-DD,对应市场时区
close_price: Option<f64>收盘价
last_close_price: Option<f64>上次收盘价
aggregated_short: Option<u64>未平仓股数
aggregated_short_ratio: Option<f64>占流通股比例,百分号前的值,如 12.34 表示 12.34%
Implementations§
Source§impl HkShortInterestItem
impl HkShortInterestItem
Sourcepub fn timestamp(&self) -> i64
pub fn timestamp(&self) -> i64
Returns the value of timestamp, or the default value if timestamp is unset.
Sourcepub fn timestamp_str(&self) -> &str
pub fn timestamp_str(&self) -> &str
Returns the value of timestamp_str, or the default value if timestamp_str is unset.
Sourcepub fn close_price(&self) -> f64
pub fn close_price(&self) -> f64
Returns the value of close_price, or the default value if close_price is unset.
Sourcepub fn last_close_price(&self) -> f64
pub fn last_close_price(&self) -> f64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Sourcepub fn aggregated_short(&self) -> u64
pub fn aggregated_short(&self) -> u64
Returns the value of aggregated_short, or the default value if aggregated_short is unset.
Sourcepub fn aggregated_short_ratio(&self) -> f64
pub fn aggregated_short_ratio(&self) -> f64
Returns the value of aggregated_short_ratio, or the default value if aggregated_short_ratio is unset.
Trait Implementations§
Source§impl Clone for HkShortInterestItem
impl Clone for HkShortInterestItem
Source§fn clone(&self) -> HkShortInterestItem
fn clone(&self) -> HkShortInterestItem
Returns a duplicate of the value. Read more
1.0.0 · 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 HkShortInterestItem
impl Debug for HkShortInterestItem
Source§impl Default for HkShortInterestItem
impl Default for HkShortInterestItem
Source§impl<'de> Deserialize<'de> for HkShortInterestItemwhere
HkShortInterestItem: Default,
impl<'de> Deserialize<'de> for HkShortInterestItemwhere
HkShortInterestItem: Default,
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
Source§impl Message for HkShortInterestItem
impl Message for HkShortInterestItem
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for HkShortInterestItem
impl PartialEq for HkShortInterestItem
Source§impl Serialize for HkShortInterestItem
impl Serialize for HkShortInterestItem
impl StructuralPartialEq for HkShortInterestItem
Auto Trait Implementations§
impl Freeze for HkShortInterestItem
impl RefUnwindSafe for HkShortInterestItem
impl Send for HkShortInterestItem
impl Sync for HkShortInterestItem
impl Unpin for HkShortInterestItem
impl UnsafeUnpin for HkShortInterestItem
impl UnwindSafe for HkShortInterestItem
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