pub struct StockInfoItem {Show 19 fields
pub ret: Option<i32>,
pub src_code: Option<String>,
pub name: Option<String>,
pub sc_name: Option<String>,
pub tc_name: Option<String>,
pub instrument_type: Option<i32>,
pub suspend_flag: Option<i32>,
pub stock_id: Option<u64>,
pub market_code: Option<u32>,
pub symbol: Option<String>,
pub sub_instrument_type: Option<i32>,
pub lot_size: Option<i32>,
pub spread_table_code: Option<u32>,
pub display_symbol: Option<String>,
pub no_search: Option<i32>,
pub listing_time: Option<u64>,
pub instrument_type_v2: Option<i32>,
pub sub_instrument_type_v2: Option<i32>,
pub listed_exchange: Option<String>,
}Expand description
v1.4.112: field numbers must match C++/moomoo stock_information.proto.
Ref:
- o-src/FutuOpenD/Src/NNProtoFile/Server/PB/Quote/stock_information.proto:97-140
- o-src/moomoo/…/Proto/Quote/api_stock_information.proto:98-140
Backend field 2 is src_code (string), while stock_id is field 9.
Fields§
§ret: Option<i32>§src_code: Option<String>§name: Option<String>§sc_name: Option<String>§tc_name: Option<String>§instrument_type: Option<i32>§suspend_flag: Option<i32>§stock_id: Option<u64>§market_code: Option<u32>§symbol: Option<String>§sub_instrument_type: Option<i32>§lot_size: Option<i32>§spread_table_code: Option<u32>§display_symbol: Option<String>§no_search: Option<i32>§listing_time: Option<u64>§instrument_type_v2: Option<i32>§sub_instrument_type_v2: Option<i32>§listed_exchange: Option<String>Implementations§
Source§impl StockInfoItem
impl StockInfoItem
Sourcepub fn src_code(&self) -> &str
pub fn src_code(&self) -> &str
Returns the value of src_code, or the default value if src_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 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 suspend_flag(&self) -> i32
pub fn suspend_flag(&self) -> i32
Returns the value of suspend_flag, or the default value if suspend_flag is unset.
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 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 symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol 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 lot_size(&self) -> i32
pub fn lot_size(&self) -> i32
Returns the value of lot_size, or the default value if lot_size 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 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 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 listing_time(&self) -> u64
pub fn listing_time(&self) -> u64
Returns the value of listing_time, or the default value if listing_time 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 listed_exchange(&self) -> &str
pub fn listed_exchange(&self) -> &str
Returns the value of listed_exchange, or the default value if listed_exchange is unset.
Trait Implementations§
Source§impl Clone for StockInfoItem
impl Clone for StockInfoItem
Source§fn clone(&self) -> StockInfoItem
fn clone(&self) -> StockInfoItem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StockInfoItem
impl Debug for StockInfoItem
Source§impl Default for StockInfoItem
impl Default for StockInfoItem
Source§impl Hash for StockInfoItem
impl Hash for StockInfoItem
Source§impl Message for StockInfoItem
impl Message for StockInfoItem
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 StockInfoItem
impl PartialEq for StockInfoItem
impl Eq for StockInfoItem
impl StructuralPartialEq for StockInfoItem
Auto Trait Implementations§
impl Freeze for StockInfoItem
impl RefUnwindSafe for StockInfoItem
impl Send for StockInfoItem
impl Sync for StockInfoItem
impl Unpin for StockInfoItem
impl UnsafeUnpin for StockInfoItem
impl UnwindSafe for StockInfoItem
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.