pub struct MarketInfoReq {
pub market_id: Vec<i32>,
pub is_contain_ba: Option<bool>,
pub is_contain_overnight: Option<bool>,
pub is_need_crypto_multi_broker: Option<bool>,
}Expand description
市场交易日查询 请求消息 // cmd 6825
Fields§
§market_id: Vec<i32>要查询的市场类型,参考MarketID枚举,未指定则默认为查询所有市场
is_contain_ba: Option<bool>美股是否包括盘前盘后交易
is_contain_overnight: Option<bool>v1.4.110 final E.5 P3#10: 补 field 3-4 对齐 C++ Quote/market_tradingDay.proto:301,297 is_contain_overnight: 美股夜盘交易开关 (默认 false 不返回夜盘时段) is_need_crypto_multi_broker: crypto multi-broker 数据开关 (默认 false 返综合报价) Rust 当前 caller (CMD 6825) 不调 MarketInfoReq (daemon 用 RangeTradingDayReq/Rsp 走另一条), 加字段防 future caller 接入 crypto multi-broker / 夜盘场景时 prost wire 漂移.
美股是否包括夜盘交易
is_need_crypto_multi_broker: Option<bool>是否需要返回多券商数据
Implementations§
Source§impl MarketInfoReq
impl MarketInfoReq
Sourcepub fn is_contain_ba(&self) -> bool
pub fn is_contain_ba(&self) -> bool
Returns the value of is_contain_ba, or the default value if is_contain_ba is unset.
Sourcepub fn is_contain_overnight(&self) -> bool
pub fn is_contain_overnight(&self) -> bool
Returns the value of is_contain_overnight, or the default value if is_contain_overnight is unset.
Sourcepub fn is_need_crypto_multi_broker(&self) -> bool
pub fn is_need_crypto_multi_broker(&self) -> bool
Returns the value of is_need_crypto_multi_broker, or the default value if is_need_crypto_multi_broker is unset.
Trait Implementations§
Source§impl Clone for MarketInfoReq
impl Clone for MarketInfoReq
Source§fn clone(&self) -> MarketInfoReq
fn clone(&self) -> MarketInfoReq
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarketInfoReq
impl Debug for MarketInfoReq
Source§impl Default for MarketInfoReq
impl Default for MarketInfoReq
Source§impl Hash for MarketInfoReq
impl Hash for MarketInfoReq
Source§impl Message for MarketInfoReq
impl Message for MarketInfoReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
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,
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,
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,
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 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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for MarketInfoReq
impl PartialEq for MarketInfoReq
impl Eq for MarketInfoReq
impl StructuralPartialEq for MarketInfoReq
Auto Trait Implementations§
impl Freeze for MarketInfoReq
impl RefUnwindSafe for MarketInfoReq
impl Send for MarketInfoReq
impl Sync for MarketInfoReq
impl Unpin for MarketInfoReq
impl UnsafeUnpin for MarketInfoReq
impl UnwindSafe for MarketInfoReq
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
Mutably borrows from an owned value. Read more
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.