pub struct ProjectItem {
pub stock_id: Option<u64>,
pub ipo_price: Option<i64>,
pub ipo_time: Option<u64>,
pub price: Option<i64>,
pub price_change_ratio: Option<i64>,
pub first_day_price_change_ratio: Option<i64>,
pub stock_investor: Option<StoneInvestorItem>,
pub last_day_close_price: Option<i64>,
}Expand description
历史项目信息
Fields§
§stock_id: Option<u64>内部的stock_id
ipo_price: Option<i64>发行价(9位精度, 单位0.000000001,倍率:1000000000)
ipo_time: Option<u64>上市时间(时间戳格式)
price: Option<i64>价格(9位精度),根据请求的参数返回即时报价或者延时报价
price_change_ratio: Option<i64>涨跌幅(上市至今)【需求变化:目前不返回此字段】
first_day_price_change_ratio: Option<i64>涨跌幅(首日)(5位精度,单位为0.001%)
stock_investor: Option<StoneInvestorItem>stockInvestor字段仅在查询基石投资者的历史项目时有效
该项目对应的基石投资者信息:名称/代码,该基石投资者的计划认购/实际认购、实际认购占比、计划认购占比等
last_day_close_price: Option<i64>昨日收盘价(9位精度)
Implementations§
Source§impl ProjectItem
impl ProjectItem
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
Sourcepub fn ipo_price(&self) -> i64
pub fn ipo_price(&self) -> i64
Returns the value of ipo_price, or the default value if ipo_price is unset.
Sourcepub fn ipo_time(&self) -> u64
pub fn ipo_time(&self) -> u64
Returns the value of ipo_time, or the default value if ipo_time is unset.
Sourcepub fn price_change_ratio(&self) -> i64
pub fn price_change_ratio(&self) -> i64
Returns the value of price_change_ratio, or the default value if price_change_ratio is unset.
Sourcepub fn first_day_price_change_ratio(&self) -> i64
pub fn first_day_price_change_ratio(&self) -> i64
Returns the value of first_day_price_change_ratio, or the default value if first_day_price_change_ratio is unset.
Sourcepub fn last_day_close_price(&self) -> i64
pub fn last_day_close_price(&self) -> i64
Returns the value of last_day_close_price, or the default value if last_day_close_price is unset.
Trait Implementations§
Source§impl Clone for ProjectItem
impl Clone for ProjectItem
Source§fn clone(&self) -> ProjectItem
fn clone(&self) -> ProjectItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProjectItem
impl Debug for ProjectItem
Source§impl Default for ProjectItem
impl Default for ProjectItem
Source§impl Hash for ProjectItem
impl Hash for ProjectItem
Source§impl Message for ProjectItem
impl Message for ProjectItem
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 ProjectItem
impl PartialEq for ProjectItem
impl Eq for ProjectItem
impl StructuralPartialEq for ProjectItem
Auto Trait Implementations§
impl Freeze for ProjectItem
impl RefUnwindSafe for ProjectItem
impl Send for ProjectItem
impl Sync for ProjectItem
impl Unpin for ProjectItem
impl UnsafeUnpin for ProjectItem
impl UnwindSafe for ProjectItem
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.