pub struct UsPreMarketAfterHoursDetailItem {
pub price: Option<i64>,
pub price_highest: Option<i64>,
pub price_lowest: Option<i64>,
pub volume: Option<i64>,
pub turnover: Option<i64>,
pub price_change: Option<i64>,
pub ratio_price_change: Option<i64>,
pub amplitude_price: Option<i64>,
pub price_update_time_ms: Option<i64>,
}Expand description
美股盘前或盘后详细信息
Fields§
§price: Option<i64>盘前或盘后 - 价格
price_highest: Option<i64>盘前或盘后 - 最高价
price_lowest: Option<i64>盘前或盘后 - 最低价
volume: Option<i64>盘前或盘后 - 成交量
turnover: Option<i64>盘前或盘后 - 成交额
price_change: Option<i64>盘前或盘后 - 涨跌额
ratio_price_change: Option<i64>盘前或盘后 - 涨跌幅,[放大10^5倍],前端展示百分比
amplitude_price: Option<i64>盘前或盘后 - 振幅,[放大10^5倍],前端展示百分比
price_update_time_ms: Option<i64>价格更新时间 ms
Implementations§
Source§impl UsPreMarketAfterHoursDetailItem
impl UsPreMarketAfterHoursDetailItem
Sourcepub fn price_highest(&self) -> i64
pub fn price_highest(&self) -> i64
Returns the value of price_highest, or the default value if price_highest is unset.
Sourcepub fn price_lowest(&self) -> i64
pub fn price_lowest(&self) -> i64
Returns the value of price_lowest, or the default value if price_lowest is unset.
Sourcepub fn volume(&self) -> i64
pub fn volume(&self) -> i64
Returns the value of volume, or the default value if volume is unset.
Sourcepub fn turnover(&self) -> i64
pub fn turnover(&self) -> i64
Returns the value of turnover, or the default value if turnover is unset.
Sourcepub fn price_change(&self) -> i64
pub fn price_change(&self) -> i64
Returns the value of price_change, or the default value if price_change is unset.
Sourcepub fn ratio_price_change(&self) -> i64
pub fn ratio_price_change(&self) -> i64
Returns the value of ratio_price_change, or the default value if ratio_price_change is unset.
Sourcepub fn amplitude_price(&self) -> i64
pub fn amplitude_price(&self) -> i64
Returns the value of amplitude_price, or the default value if amplitude_price is unset.
Sourcepub fn price_update_time_ms(&self) -> i64
pub fn price_update_time_ms(&self) -> i64
Returns the value of price_update_time_ms, or the default value if price_update_time_ms is unset.
Trait Implementations§
Source§impl Clone for UsPreMarketAfterHoursDetailItem
impl Clone for UsPreMarketAfterHoursDetailItem
Source§fn clone(&self) -> UsPreMarketAfterHoursDetailItem
fn clone(&self) -> UsPreMarketAfterHoursDetailItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Message for UsPreMarketAfterHoursDetailItem
impl Message for UsPreMarketAfterHoursDetailItem
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 UsPreMarketAfterHoursDetailItem
impl PartialEq for UsPreMarketAfterHoursDetailItem
Source§fn eq(&self, other: &UsPreMarketAfterHoursDetailItem) -> bool
fn eq(&self, other: &UsPreMarketAfterHoursDetailItem) -> bool
self and other values to be equal, and is used by ==.impl Copy for UsPreMarketAfterHoursDetailItem
impl Eq for UsPreMarketAfterHoursDetailItem
impl StructuralPartialEq for UsPreMarketAfterHoursDetailItem
Auto Trait Implementations§
impl Freeze for UsPreMarketAfterHoursDetailItem
impl RefUnwindSafe for UsPreMarketAfterHoursDetailItem
impl Send for UsPreMarketAfterHoursDetailItem
impl Sync for UsPreMarketAfterHoursDetailItem
impl Unpin for UsPreMarketAfterHoursDetailItem
impl UnsafeUnpin for UsPreMarketAfterHoursDetailItem
impl UnwindSafe for UsPreMarketAfterHoursDetailItem
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.