pub struct HistoryClosePrice {
pub price_close_5min: Option<i64>,
pub price_close_5day: Option<i64>,
pub price_close_10day: Option<i64>,
pub price_close_20day: Option<i64>,
pub price_close_60day: Option<i64>,
pub price_close_120day: Option<i64>,
pub price_close_250day: Option<i64>,
pub price_close_year: Option<i64>,
pub price_close_month: Option<i64>,
pub price_close_15min: Option<i64>,
}Expand description
历史收盘价,订阅位:SBIT_HISTORY_CLOSE_PRICE
Fields§
§price_close_5min: Option<i64>五分钟收盘价
price_close_5day: Option<i64>5日收盘价
price_close_10day: Option<i64>10日收盘价
price_close_20day: Option<i64>20日收盘价
price_close_60day: Option<i64>60日收盘价
price_close_120day: Option<i64>120日收盘价
price_close_250day: Option<i64>250日收盘价
price_close_year: Option<i64>1年收盘价
price_close_month: Option<i64>1月收盘价
price_close_15min: Option<i64>15分钟收盘价
Implementations§
Source§impl HistoryClosePrice
impl HistoryClosePrice
Sourcepub fn price_close_5min(&self) -> i64
pub fn price_close_5min(&self) -> i64
Returns the value of price_close_5min, or the default value if price_close_5min is unset.
Sourcepub fn price_close_5day(&self) -> i64
pub fn price_close_5day(&self) -> i64
Returns the value of price_close_5day, or the default value if price_close_5day is unset.
Sourcepub fn price_close_10day(&self) -> i64
pub fn price_close_10day(&self) -> i64
Returns the value of price_close_10day, or the default value if price_close_10day is unset.
Sourcepub fn price_close_20day(&self) -> i64
pub fn price_close_20day(&self) -> i64
Returns the value of price_close_20day, or the default value if price_close_20day is unset.
Sourcepub fn price_close_60day(&self) -> i64
pub fn price_close_60day(&self) -> i64
Returns the value of price_close_60day, or the default value if price_close_60day is unset.
Sourcepub fn price_close_120day(&self) -> i64
pub fn price_close_120day(&self) -> i64
Returns the value of price_close_120day, or the default value if price_close_120day is unset.
Sourcepub fn price_close_250day(&self) -> i64
pub fn price_close_250day(&self) -> i64
Returns the value of price_close_250day, or the default value if price_close_250day is unset.
Sourcepub fn price_close_year(&self) -> i64
pub fn price_close_year(&self) -> i64
Returns the value of price_close_year, or the default value if price_close_year is unset.
Sourcepub fn price_close_month(&self) -> i64
pub fn price_close_month(&self) -> i64
Returns the value of price_close_month, or the default value if price_close_month is unset.
Sourcepub fn price_close_15min(&self) -> i64
pub fn price_close_15min(&self) -> i64
Returns the value of price_close_15min, or the default value if price_close_15min is unset.
Trait Implementations§
Source§impl Clone for HistoryClosePrice
impl Clone for HistoryClosePrice
Source§fn clone(&self) -> HistoryClosePrice
fn clone(&self) -> HistoryClosePrice
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HistoryClosePrice
impl Debug for HistoryClosePrice
Source§impl Default for HistoryClosePrice
impl Default for HistoryClosePrice
Source§impl Hash for HistoryClosePrice
impl Hash for HistoryClosePrice
Source§impl Message for HistoryClosePrice
impl Message for HistoryClosePrice
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 HistoryClosePrice
impl PartialEq for HistoryClosePrice
impl Copy for HistoryClosePrice
impl Eq for HistoryClosePrice
impl StructuralPartialEq for HistoryClosePrice
Auto Trait Implementations§
impl Freeze for HistoryClosePrice
impl RefUnwindSafe for HistoryClosePrice
impl Send for HistoryClosePrice
impl Sync for HistoryClosePrice
impl Unpin for HistoryClosePrice
impl UnsafeUnpin for HistoryClosePrice
impl UnwindSafe for HistoryClosePrice
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.