pub struct HistoryCashFlowReq {
pub stock_id: Option<u64>,
pub req_period_type: Option<u32>,
pub base_time: Option<u64>,
pub count: Option<u64>,
pub need_detail: Option<u32>,
pub analysis_type: Option<u32>,
pub broker_id: Option<i32>,
}Expand description
CMD = 6695
Fields§
§stock_id: Option<u64>股票ID
req_period_type: Option<u32>请求的时期类型,参考PeriodType
base_time: Option<u64>请求的时间,svr将从base_time往回取数据。默认为0,表示取最新的数据
count: Option<u64>请求的数量
need_detail: Option<u32>是否需要详情(默认为0) 0: 不需要详情;1: 需要详情
analysis_type: Option<u32>是否需要解读数据,默认0不需要,1为近20个交易日数据
broker_id: Option<i32>v1.4.110 final E.5 LOW: 补 field 8 对齐 C++ (注意 C++ 跳过了 tag 7, 估计是因为 tag 7 在历史版本被其他字段占用过). Rust handler 暂无 caller 但 proto 不留漂移 (per pitfall #23 防第 4 次复发). 来源: NNProtoFile/Server/PB/Quote/FTCmdCash_flow_cs.proto:107.
券商id,选填;数字货币时需传真实的券商id
Implementations§
Source§impl HistoryCashFlowReq
impl HistoryCashFlowReq
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 req_period_type(&self) -> u32
pub fn req_period_type(&self) -> u32
Returns the value of req_period_type, or the default value if req_period_type is unset.
Sourcepub fn base_time(&self) -> u64
pub fn base_time(&self) -> u64
Returns the value of base_time, or the default value if base_time is unset.
Sourcepub fn need_detail(&self) -> u32
pub fn need_detail(&self) -> u32
Returns the value of need_detail, or the default value if need_detail is unset.
Sourcepub fn analysis_type(&self) -> u32
pub fn analysis_type(&self) -> u32
Returns the value of analysis_type, or the default value if analysis_type is unset.
Trait Implementations§
Source§impl Clone for HistoryCashFlowReq
impl Clone for HistoryCashFlowReq
Source§fn clone(&self) -> HistoryCashFlowReq
fn clone(&self) -> HistoryCashFlowReq
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HistoryCashFlowReq
impl Debug for HistoryCashFlowReq
Source§impl Default for HistoryCashFlowReq
impl Default for HistoryCashFlowReq
Source§impl Hash for HistoryCashFlowReq
impl Hash for HistoryCashFlowReq
Source§impl Message for HistoryCashFlowReq
impl Message for HistoryCashFlowReq
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 HistoryCashFlowReq
impl PartialEq for HistoryCashFlowReq
impl Copy for HistoryCashFlowReq
impl Eq for HistoryCashFlowReq
impl StructuralPartialEq for HistoryCashFlowReq
Auto Trait Implementations§
impl Freeze for HistoryCashFlowReq
impl RefUnwindSafe for HistoryCashFlowReq
impl Send for HistoryCashFlowReq
impl Sync for HistoryCashFlowReq
impl Unpin for HistoryCashFlowReq
impl UnsafeUnpin for HistoryCashFlowReq
impl UnwindSafe for HistoryCashFlowReq
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.