pub struct BasicQot {Show 25 fields
pub security: Security,
pub name: Option<String>,
pub is_suspended: bool,
pub list_time: String,
pub price_spread: f64,
pub update_time: String,
pub high_price: f64,
pub open_price: f64,
pub low_price: f64,
pub cur_price: f64,
pub last_close_price: f64,
pub volume: i64,
pub turnover: f64,
pub turnover_rate: f64,
pub amplitude: f64,
pub dark_status: Option<i32>,
pub option_ex_data: Option<OptionBasicQotExData>,
pub list_timestamp: Option<f64>,
pub update_timestamp: Option<f64>,
pub pre_market: Option<PreAfterMarketData>,
pub after_market: Option<PreAfterMarketData>,
pub sec_status: Option<i32>,
pub future_ex_data: Option<FutureBasicQotExData>,
pub warrant_ex_data: Option<WarrantBasicQotExData>,
pub overnight: Option<PreAfterMarketData>,
}Fields§
§security: Security股票
name: Option<String>股票名称
is_suspended: bool是否停牌
list_time: String上市日期字符串
price_spread: f64价差
update_time: String最新价的更新时间字符串,对其他字段不适用
high_price: f64最高价
open_price: f64开盘价
low_price: f64最低价
cur_price: f64最新价
last_close_price: f64昨收价
volume: i64成交量
turnover: f64成交额
turnover_rate: f64换手率(该字段为百分比字段,默认不展示%,如20实际对应20%)
amplitude: f64振幅(该字段为百分比字段,默认不展示%,如20实际对应20%)
dark_status: Option<i32>DarkStatus, 暗盘交易状态
option_ex_data: Option<OptionBasicQotExData>期权特有字段
list_timestamp: Option<f64>上市日期时间戳
update_timestamp: Option<f64>最新价的更新时间戳,对其他字段不适用
pre_market: Option<PreAfterMarketData>盘前数据
after_market: Option<PreAfterMarketData>盘后数据
sec_status: Option<i32>SecurityStatus, 股票状态
future_ex_data: Option<FutureBasicQotExData>期货特有字段
warrant_ex_data: Option<WarrantBasicQotExData>窝轮特有字段
overnight: Option<PreAfterMarketData>夜盘数据
Implementations§
Source§impl BasicQot
impl BasicQot
Sourcepub fn dark_status(&self) -> i32
pub fn dark_status(&self) -> i32
Returns the value of dark_status, or the default value if dark_status is unset.
Sourcepub fn list_timestamp(&self) -> f64
pub fn list_timestamp(&self) -> f64
Returns the value of list_timestamp, or the default value if list_timestamp is unset.
Sourcepub fn update_timestamp(&self) -> f64
pub fn update_timestamp(&self) -> f64
Returns the value of update_timestamp, or the default value if update_timestamp is unset.
Sourcepub fn sec_status(&self) -> i32
pub fn sec_status(&self) -> i32
Returns the value of sec_status, or the default value if sec_status is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BasicQot
impl<'de> Deserialize<'de> for BasicQot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for BasicQot
impl Message for BasicQot
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 StructuralPartialEq for BasicQot
Auto Trait Implementations§
impl Freeze for BasicQot
impl RefUnwindSafe for BasicQot
impl Send for BasicQot
impl Sync for BasicQot
impl Unpin for BasicQot
impl UnwindSafe for BasicQot
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