pub struct UsPreMarketAfterHours {
pub status: Option<i32>,
pub price_current: Option<i64>,
pub price_last_close: Option<i64>,
pub exchange_time_s: Option<i64>,
}Expand description
美股盘前或盘后简要信息,订阅位:SBIT_US_PREMARKET_AFTERHOURS
Fields§
§status: Option<i32>状态,枚举USPreMarketAfterHoursStatus
price_current: Option<i64>后续字段仅在 status=PRE或POST 时下发
盘前价或盘后价
price_last_close: Option<i64>正式时段最后价格,用于计算盘前盘后涨跌幅
exchange_time_s: Option<i64>交易所服务器时间
Implementations§
Source§impl UsPreMarketAfterHours
impl UsPreMarketAfterHours
Sourcepub fn status(&self) -> i32
pub fn status(&self) -> i32
Returns the value of status, or the default value if status is unset.
Sourcepub fn price_current(&self) -> i64
pub fn price_current(&self) -> i64
Returns the value of price_current, or the default value if price_current is unset.
Sourcepub fn price_last_close(&self) -> i64
pub fn price_last_close(&self) -> i64
Returns the value of price_last_close, or the default value if price_last_close is unset.
Sourcepub fn exchange_time_s(&self) -> i64
pub fn exchange_time_s(&self) -> i64
Returns the value of exchange_time_s, or the default value if exchange_time_s is unset.
Trait Implementations§
Source§impl Clone for UsPreMarketAfterHours
impl Clone for UsPreMarketAfterHours
Source§fn clone(&self) -> UsPreMarketAfterHours
fn clone(&self) -> UsPreMarketAfterHours
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 UsPreMarketAfterHours
impl Debug for UsPreMarketAfterHours
Source§impl Default for UsPreMarketAfterHours
impl Default for UsPreMarketAfterHours
Source§impl Hash for UsPreMarketAfterHours
impl Hash for UsPreMarketAfterHours
Source§impl Message for UsPreMarketAfterHours
impl Message for UsPreMarketAfterHours
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 UsPreMarketAfterHours
impl PartialEq for UsPreMarketAfterHours
impl Copy for UsPreMarketAfterHours
impl Eq for UsPreMarketAfterHours
impl StructuralPartialEq for UsPreMarketAfterHours
Auto Trait Implementations§
impl Freeze for UsPreMarketAfterHours
impl RefUnwindSafe for UsPreMarketAfterHours
impl Send for UsPreMarketAfterHours
impl Sync for UsPreMarketAfterHours
impl Unpin for UsPreMarketAfterHours
impl UnsafeUnpin for UsPreMarketAfterHours
impl UnwindSafe for UsPreMarketAfterHours
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
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.