QotRight

Struct QotRight 

Source
pub struct QotRight {
Show 19 fields pub hk_qot_right: i32, pub us_qot_right: i32, pub cn_qot_right: i32, pub hk_option_qot_right: Option<i32>, pub has_us_option_qot_right: Option<bool>, pub hk_future_qot_right: Option<i32>, pub us_future_qot_right: Option<i32>, pub us_option_qot_right: Option<i32>, pub us_index_qot_right: Option<i32>, pub us_otc_qot_right: Option<i32>, pub sg_future_qot_right: Option<i32>, pub jp_future_qot_right: Option<i32>, pub us_cme_future_qot_right: Option<i32>, pub us_cbot_future_qot_right: Option<i32>, pub us_nymex_future_qot_right: Option<i32>, pub us_comex_future_qot_right: Option<i32>, pub us_cboe_future_qot_right: Option<i32>, pub sh_qot_right: Option<i32>, pub sz_qot_right: Option<i32>,
}

Fields§

§hk_qot_right: i32

港股行情权限, Qot_Common.QotRight

§us_qot_right: i32

美股行情权限, Qot_Common.QotRight

§cn_qot_right: i32

A股行情权限, Qot_Common.QotRight // (已废弃),使用shQotRight和szQotRight

§hk_option_qot_right: Option<i32>

港股期权行情权限, Qot_Common.QotRight

§has_us_option_qot_right: Option<bool>

是否有美股期权行情权限

§hk_future_qot_right: Option<i32>

港股期货行情权限, Qot_Common.QotRight

§us_future_qot_right: Option<i32>

美股期货行情权限, Qot_Common.QotRight(已废弃)

§us_option_qot_right: Option<i32>

美股期权行情权限, Qot_Common.QotRight

§us_index_qot_right: Option<i32>

美股指数行情权限, Qot_Common.QotRight

§us_otc_qot_right: Option<i32>

美股OTC市场行情权限, Qot_Common.QotRight

§sg_future_qot_right: Option<i32>

新加坡市场期货行情权限, Qot_Common.QotRight

§jp_future_qot_right: Option<i32>

日本市场期货行情权限, Qot_Common.QotRight

§us_cme_future_qot_right: Option<i32>

美股CME期货行情权限, Qot_Common.QotRight

§us_cbot_future_qot_right: Option<i32>

美股CBOT期货行情权限, Qot_Common.QotRight

§us_nymex_future_qot_right: Option<i32>

美股NYMEX期货行情权限, Qot_Common.QotRight

§us_comex_future_qot_right: Option<i32>

美股COMEX期货行情权限, Qot_Common.QotRight

§us_cboe_future_qot_right: Option<i32>

美股CBOE期货行情权限, Qot_Common.QotRight

§sh_qot_right: Option<i32>

上海A股行情权限, Qot_Common.QotRight

§sz_qot_right: Option<i32>

深圳A股行情权限, Qot_Common.QotRight

Implementations§

Source§

impl QotRight

Source

pub fn hk_option_qot_right(&self) -> i32

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

Source

pub fn has_us_option_qot_right(&self) -> bool

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

Source

pub fn hk_future_qot_right(&self) -> i32

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

Source

pub fn us_future_qot_right(&self) -> i32

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

Source

pub fn us_option_qot_right(&self) -> i32

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

Source

pub fn us_index_qot_right(&self) -> i32

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

Source

pub fn us_otc_qot_right(&self) -> i32

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

Source

pub fn sg_future_qot_right(&self) -> i32

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

Source

pub fn jp_future_qot_right(&self) -> i32

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

Source

pub fn us_cme_future_qot_right(&self) -> i32

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

Source

pub fn us_cbot_future_qot_right(&self) -> i32

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

Source

pub fn us_nymex_future_qot_right(&self) -> i32

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

Source

pub fn us_comex_future_qot_right(&self) -> i32

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

Source

pub fn us_cboe_future_qot_right(&self) -> i32

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

Source

pub fn sh_qot_right(&self) -> i32

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

Source

pub fn sz_qot_right(&self) -> i32

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

Trait Implementations§

Source§

impl Clone for QotRight

Source§

fn clone(&self) -> QotRight

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 QotRight

Source§

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

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

impl Default for QotRight

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for QotRight

Source§

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 QotRight

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 QotRight

Source§

fn eq(&self, other: &QotRight) -> 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 Serialize for QotRight

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for QotRight

Source§

impl StructuralPartialEq for QotRight

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.

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.

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

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,