pub struct CryptoResultInfo {Show 21 fields
pub ret: Option<i32>,
pub stock_id: Option<u64>,
pub symbol: Option<String>,
pub display_symbol: Option<String>,
pub instrument_type: Option<i32>,
pub sub_instrument_type: Option<i32>,
pub market_code: Option<u32>,
pub sc_name: Option<String>,
pub tc_name: Option<String>,
pub name: Option<String>,
pub spread_table_code: Option<u32>,
pub no_search: Option<i32>,
pub no_subscription: Option<bool>,
pub cc_origin: Option<String>,
pub cc_destination: Option<String>,
pub crypto_exchange: Option<String>,
pub code_item: Option<SrcCodeItem>,
pub instrument_type_v2: Option<i32>,
pub sub_instrument_type_v2: Option<i32>,
pub delisting_flag: Option<u32>,
pub region: Option<String>,
}Expand description
Ref:
- o-src/FutuOpenD/Src/NNProtoFile/Server/PB/Quote/stock_information.proto:404-478
- o-src/moomoo/…/Proto/Quote/api_stock_information.proto:405-479
Fields§
§ret: Option<i32>§stock_id: Option<u64>§symbol: Option<String>§display_symbol: Option<String>§instrument_type: Option<i32>§sub_instrument_type: Option<i32>§market_code: Option<u32>§sc_name: Option<String>§tc_name: Option<String>§name: Option<String>§spread_table_code: Option<u32>§no_search: Option<i32>§no_subscription: Option<bool>§cc_origin: Option<String>§cc_destination: Option<String>§crypto_exchange: Option<String>§code_item: Option<SrcCodeItem>§instrument_type_v2: Option<i32>§sub_instrument_type_v2: Option<i32>§delisting_flag: Option<u32>§region: Option<String>Implementations§
Source§impl CryptoResultInfo
impl CryptoResultInfo
Sourcepub fn stock_id(&self) -> u64
pub fn stock_id(&self) -> u64
Returns the value of stock_id, or the default value if stock_id is unset.
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 display_symbol(&self) -> &str
pub fn display_symbol(&self) -> &str
Returns the value of display_symbol, or the default value if display_symbol is unset.
Sourcepub fn instrument_type(&self) -> i32
pub fn instrument_type(&self) -> i32
Returns the value of instrument_type, or the default value if instrument_type is unset.
Sourcepub fn sub_instrument_type(&self) -> i32
pub fn sub_instrument_type(&self) -> i32
Returns the value of sub_instrument_type, or the default value if sub_instrument_type is unset.
Sourcepub fn market_code(&self) -> u32
pub fn market_code(&self) -> u32
Returns the value of market_code, or the default value if market_code is unset.
Sourcepub fn sc_name(&self) -> &str
pub fn sc_name(&self) -> &str
Returns the value of sc_name, or the default value if sc_name is unset.
Sourcepub fn tc_name(&self) -> &str
pub fn tc_name(&self) -> &str
Returns the value of tc_name, or the default value if tc_name is unset.
Sourcepub fn spread_table_code(&self) -> u32
pub fn spread_table_code(&self) -> u32
Returns the value of spread_table_code, or the default value if spread_table_code is unset.
Sourcepub fn no_search(&self) -> i32
pub fn no_search(&self) -> i32
Returns the value of no_search, or the default value if no_search is unset.
Sourcepub fn no_subscription(&self) -> bool
pub fn no_subscription(&self) -> bool
Returns the value of no_subscription, or the default value if no_subscription is unset.
Sourcepub fn cc_origin(&self) -> &str
pub fn cc_origin(&self) -> &str
Returns the value of cc_origin, or the default value if cc_origin is unset.
Sourcepub fn cc_destination(&self) -> &str
pub fn cc_destination(&self) -> &str
Returns the value of cc_destination, or the default value if cc_destination is unset.
Sourcepub fn crypto_exchange(&self) -> &str
pub fn crypto_exchange(&self) -> &str
Returns the value of crypto_exchange, or the default value if crypto_exchange is unset.
Sourcepub fn instrument_type_v2(&self) -> i32
pub fn instrument_type_v2(&self) -> i32
Returns the value of instrument_type_v2, or the default value if instrument_type_v2 is unset.
Sourcepub fn sub_instrument_type_v2(&self) -> i32
pub fn sub_instrument_type_v2(&self) -> i32
Returns the value of sub_instrument_type_v2, or the default value if sub_instrument_type_v2 is unset.
Sourcepub fn delisting_flag(&self) -> u32
pub fn delisting_flag(&self) -> u32
Returns the value of delisting_flag, or the default value if delisting_flag is unset.
Trait Implementations§
Source§impl Clone for CryptoResultInfo
impl Clone for CryptoResultInfo
Source§fn clone(&self) -> CryptoResultInfo
fn clone(&self) -> CryptoResultInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CryptoResultInfo
impl Debug for CryptoResultInfo
Source§impl Default for CryptoResultInfo
impl Default for CryptoResultInfo
Source§impl Hash for CryptoResultInfo
impl Hash for CryptoResultInfo
Source§impl Message for CryptoResultInfo
impl Message for CryptoResultInfo
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.Source§impl PartialEq for CryptoResultInfo
impl PartialEq for CryptoResultInfo
impl Eq for CryptoResultInfo
impl StructuralPartialEq for CryptoResultInfo
Auto Trait Implementations§
impl Freeze for CryptoResultInfo
impl RefUnwindSafe for CryptoResultInfo
impl Send for CryptoResultInfo
impl Sync for CryptoResultInfo
impl Unpin for CryptoResultInfo
impl UnsafeUnpin for CryptoResultInfo
impl UnwindSafe for CryptoResultInfo
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
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
§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
§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
key and return true if they are equal.