pub struct Price {
pub price_nominal: Option<i64>,
pub price_last_close: Option<i64>,
pub server_send_to_client_time_ms: Option<i64>,
pub exchange_data_time_ms: Option<i64>,
pub server_recv_from_exchange_time_ms: Option<i64>,
pub not_cal_delay: Option<i32>,
}Expand description
股票按盘价,订阅位:SBIT_PRICE
Fields§
§price_nominal: Option<i64>按盘价/当前价
price_last_close: Option<i64>昨收价
server_send_to_client_time_ms: Option<i64>富途服务器向终端发送的时间
exchange_data_time_ms: Option<i64>交易所数据时间
server_recv_from_exchange_time_ms: Option<i64>富途服务器从交易所收到数据的时间. server重启时该字段为空,client使用前判断非空
not_cal_delay: Option<i32>不能用作统计时延 0:统计 1:不统计
Implementations§
Source§impl Price
impl Price
Sourcepub fn price_nominal(&self) -> i64
pub fn price_nominal(&self) -> i64
Returns the value of price_nominal, or the default value if price_nominal 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 server_send_to_client_time_ms(&self) -> i64
pub fn server_send_to_client_time_ms(&self) -> i64
Returns the value of server_send_to_client_time_ms, or the default value if server_send_to_client_time_ms is unset.
Sourcepub fn exchange_data_time_ms(&self) -> i64
pub fn exchange_data_time_ms(&self) -> i64
Returns the value of exchange_data_time_ms, or the default value if exchange_data_time_ms is unset.
Sourcepub fn server_recv_from_exchange_time_ms(&self) -> i64
pub fn server_recv_from_exchange_time_ms(&self) -> i64
Returns the value of server_recv_from_exchange_time_ms, or the default value if server_recv_from_exchange_time_ms is unset.
Sourcepub fn not_cal_delay(&self) -> i32
pub fn not_cal_delay(&self) -> i32
Returns the value of not_cal_delay, or the default value if not_cal_delay is unset.
Trait Implementations§
Source§impl Message for Price
impl Message for Price
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 Price
impl Eq for Price
impl StructuralPartialEq for Price
Auto Trait Implementations§
impl Freeze for Price
impl RefUnwindSafe for Price
impl Send for Price
impl Sync for Price
impl Unpin for Price
impl UnsafeUnpin for Price
impl UnwindSafe for Price
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.