pub struct HkvcmInfo {
pub status: Option<i32>,
pub price_reference: Option<i64>,
pub price_lower: Option<i64>,
pub price_upper: Option<i64>,
pub time_start_s: Option<i64>,
pub time_end_s: Option<i64>,
}Expand description
港股冷静期机制 (Volatility Control Mechanism (VCM)),订阅位:SBIT_HK_VCM
Fields§
§status: Option<i32>VCM状态,枚举HKVCMStatus
price_reference: Option<i64>后续字段仅在 status=HK_VCM_TRIGGERING 时下发
参考价
price_lower: Option<i64>价格下限
price_upper: Option<i64>价格上限
time_start_s: Option<i64>VCM开始时间
time_end_s: Option<i64>VCM结束时间。客户端用心跳时间与结束时间比较,显示倒计时。
Implementations§
Source§impl HkvcmInfo
impl HkvcmInfo
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 time_start_s(&self) -> i64
pub fn time_start_s(&self) -> i64
Returns the value of time_start_s, or the default value if time_start_s is unset.
Sourcepub fn time_end_s(&self) -> i64
pub fn time_end_s(&self) -> i64
Returns the value of time_end_s, or the default value if time_end_s is unset.
Trait Implementations§
Source§impl Message for HkvcmInfo
impl Message for HkvcmInfo
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 Copy for HkvcmInfo
impl Eq for HkvcmInfo
impl StructuralPartialEq for HkvcmInfo
Auto Trait Implementations§
impl Freeze for HkvcmInfo
impl RefUnwindSafe for HkvcmInfo
impl Send for HkvcmInfo
impl Sync for HkvcmInfo
impl Unpin for HkvcmInfo
impl UnsafeUnpin for HkvcmInfo
impl UnwindSafe for HkvcmInfo
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.