Skip to main content

FutureDetailInfo

Struct FutureDetailInfo 

Source
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

Source

pub fn name(&self) -> &str

Returns the value of name, or the default value if name is unset.

Source

pub fn symbol(&self) -> &str

Returns the value of symbol, or the default value if symbol is unset.

Source

pub fn last_trade_date(&self) -> u32

Returns the value of last_trade_date, or the default value if last_trade_date is unset.

Source

pub fn underlying_stock_id(&self) -> i64

Returns the value of underlying_stock_id, or the default value if underlying_stock_id is unset.

Source

pub fn show_variety(&self) -> &str

Returns the value of show_variety, or the default value if show_variety is unset.

Source

pub fn exchange(&self) -> &str

Returns the value of exchange, or the default value if exchange is unset.

Source

pub fn category(&self) -> &str

Returns the value of category, or the default value if category is unset.

Source

pub fn scale(&self) -> i32

Returns the value of scale, or the default value if scale is unset.

Source

pub fn scale_unit(&self) -> &str

Returns the value of scale_unit, or the default value if scale_unit is unset.

Source

pub fn currency(&self) -> &str

Returns the value of currency, or the default value if currency is unset.

Source

pub fn minimum_variation_value(&self) -> f64

Returns the value of minimum_variation_value, or the default value if minimum_variation_value is unset.

Source

pub fn minimum_variation_unit(&self) -> &str

Returns the value of minimum_variation_unit, or the default value if minimum_variation_unit is unset.

Source

pub fn price_quotation(&self) -> &str

Returns the value of price_quotation, or the default value if price_quotation is unset.

Source

pub fn contract_value(&self) -> &str

Returns the value of contract_value, or the default value if contract_value is unset.

Source

pub fn time_zone(&self) -> &str

Returns the value of time_zone, or the default value if time_zone is unset.

Source

pub fn specification_url(&self) -> &str

Returns the value of specification_url, or the default value if specification_url is unset.

Source

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

Source§

fn clone(&self) -> FutureDetailInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for FutureDetailInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for FutureDetailInfo

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Message for FutureDetailInfo

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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.
Source§

impl PartialEq for FutureDetailInfo

Source§

fn eq(&self, other: &FutureDetailInfo) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for FutureDetailInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> PolicyExt for T
where T: ?Sized,

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more