pub struct FutureDetailInfo {Show 18 fields
pub name: Option<String>,
pub symbol: Option<String>,
pub last_trade_date: Option<u32>,
pub underlying_stock_id: Option<i64>,
pub show_variety: Option<String>,
pub exchange: Option<String>,
pub category: Option<String>,
pub scale: Option<i32>,
pub scale_unit: Option<String>,
pub currency: Option<String>,
pub minimum_variation_value: Option<f64>,
pub minimum_variation_unit: Option<String>,
pub price_quotation: Option<String>,
pub contract_value: Option<String>,
pub trade_time_detail_list: Vec<TradetimeDetail>,
pub time_zone: Option<String>,
pub specification_url: Option<String>,
pub security_id: Option<u64>,
}Expand description
期货合约具体数据
Fields§
§name: Option<String>合约名称
symbol: Option<String>合约代码
last_trade_date: Option<u32>最后交易日(时间戳)
underlying_stock_id: Option<i64>标的ID
show_variety: Option<String>标的名称
exchange: Option<String>交易所
category: Option<String>合约类型
scale: Option<i32>合约规模
scale_unit: Option<String>合约规模的单位
currency: Option<String>报价货币
minimum_variation_value: Option<f64>最小变动值
minimum_variation_unit: Option<String>最小变动值的单位
price_quotation: Option<String>报价单位(港股期货)
contract_value: Option<String>合约价值(美股期货)
trade_time_detail_list: Vec<TradetimeDetail>具体交易时间区间数值列表
time_zone: Option<String>所在时区
specification_url: Option<String>交易所规格
security_id: Option<u64>期货ID
Implementations§
Source§impl FutureDetailInfo
impl FutureDetailInfo
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn last_trade_date(&self) -> u32
pub fn last_trade_date(&self) -> u32
Returns the value of last_trade_date, or the default value if last_trade_date is unset.
Sourcepub fn underlying_stock_id(&self) -> i64
pub fn underlying_stock_id(&self) -> i64
Returns the value of underlying_stock_id, or the default value if underlying_stock_id is unset.
Sourcepub fn show_variety(&self) -> &str
pub fn show_variety(&self) -> &str
Returns the value of show_variety, or the default value if show_variety is unset.
Sourcepub fn exchange(&self) -> &str
pub fn exchange(&self) -> &str
Returns the value of exchange, or the default value if exchange is unset.
Sourcepub fn category(&self) -> &str
pub fn category(&self) -> &str
Returns the value of category, or the default value if category is unset.
Sourcepub fn scale_unit(&self) -> &str
pub fn scale_unit(&self) -> &str
Returns the value of scale_unit, or the default value if scale_unit is unset.
Sourcepub fn currency(&self) -> &str
pub fn currency(&self) -> &str
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn minimum_variation_value(&self) -> f64
pub fn minimum_variation_value(&self) -> f64
Returns the value of minimum_variation_value, or the default value if minimum_variation_value is unset.
Sourcepub fn minimum_variation_unit(&self) -> &str
pub fn minimum_variation_unit(&self) -> &str
Returns the value of minimum_variation_unit, or the default value if minimum_variation_unit is unset.
Sourcepub fn price_quotation(&self) -> &str
pub fn price_quotation(&self) -> &str
Returns the value of price_quotation, or the default value if price_quotation is unset.
Sourcepub fn contract_value(&self) -> &str
pub fn contract_value(&self) -> &str
Returns the value of contract_value, or the default value if contract_value is unset.
Sourcepub fn time_zone(&self) -> &str
pub fn time_zone(&self) -> &str
Returns the value of time_zone, or the default value if time_zone is unset.
Sourcepub fn specification_url(&self) -> &str
pub fn specification_url(&self) -> &str
Returns the value of specification_url, or the default value if specification_url is unset.
Sourcepub fn security_id(&self) -> u64
pub fn security_id(&self) -> u64
Returns the value of security_id, or the default value if security_id is unset.
Trait Implementations§
Source§impl Clone for FutureDetailInfo
impl Clone for FutureDetailInfo
Source§fn clone(&self) -> FutureDetailInfo
fn clone(&self) -> FutureDetailInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FutureDetailInfo
impl Debug for FutureDetailInfo
Source§impl Default for FutureDetailInfo
impl Default for FutureDetailInfo
Source§impl Message for FutureDetailInfo
impl Message for FutureDetailInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.