pub struct HkcasInfo {
pub status: Option<i32>,
pub price_reference: Option<i64>,
pub price_lower: Option<i64>,
pub price_upper: Option<i64>,
pub close_time_start: Option<String>,
pub close_time_end: Option<String>,
}Expand description
港股盘后竞价(Closing Auction Session (CAS)),订阅位:SBIT_HK_CAS
Fields§
§status: Option<i32>CAS状态,枚举HKCASStatus
price_reference: Option<i64>后续字段仅在 status=HK_CAS_IS_HAPPENING 时下发
参考价,为0表示还未收到交易所的CAS参考价
price_lower: Option<i64>价格下限
price_upper: Option<i64>价格上限
close_time_start: Option<String>随机收市阶段开始时间, 例如“16:08“
close_time_end: Option<String>随机收市阶段结束时间, 例如“16:10“
Implementations§
Source§impl HkcasInfo
impl HkcasInfo
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_reference(&self) -> i64
pub fn price_reference(&self) -> i64
Returns the value of price_reference, or the default value if price_reference is unset.
Sourcepub fn price_lower(&self) -> i64
pub fn price_lower(&self) -> i64
Returns the value of price_lower, or the default value if price_lower is unset.
Sourcepub fn price_upper(&self) -> i64
pub fn price_upper(&self) -> i64
Returns the value of price_upper, or the default value if price_upper is unset.
Sourcepub fn close_time_start(&self) -> &str
pub fn close_time_start(&self) -> &str
Returns the value of close_time_start, or the default value if close_time_start is unset.
Sourcepub fn close_time_end(&self) -> &str
pub fn close_time_end(&self) -> &str
Returns the value of close_time_end, or the default value if close_time_end is unset.
Trait Implementations§
Source§impl Message for HkcasInfo
impl Message for HkcasInfo
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.impl Eq for HkcasInfo
impl StructuralPartialEq for HkcasInfo
Auto Trait Implementations§
impl Freeze for HkcasInfo
impl RefUnwindSafe for HkcasInfo
impl Send for HkcasInfo
impl Sync for HkcasInfo
impl Unpin for HkcasInfo
impl UnsafeUnpin for HkcasInfo
impl UnwindSafe for HkcasInfo
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.