pub struct HistoryCashFlowRsp {
pub stock_id: Option<u64>,
pub period_type: Option<u32>,
pub point_list: Vec<FlowTrendPoint>,
pub has_more: Option<u32>,
pub error_code: Option<i32>,
pub analysis_data: Option<AnalysisData>,
pub broker_id: Option<i32>,
}Fields§
§stock_id: Option<u64>股票ID
period_type: Option<u32>请求的时期类型(回传)
point_list: Vec<FlowTrendPoint>返回的数据项
has_more: Option<u32>是否还有时间更前的数据
error_code: Option<i32>错误码,参考ErrorCode
analysis_data: Option<AnalysisData>解读数据
broker_id: Option<i32>v1.4.110 final E.5 LOW: 补 field 7 对齐 C++ NNProtoFile/Server/PB/Quote/FTCmdCash_flow_cs.proto:117. Rust handler 暂无 caller 但 proto 不留漂移 (per pitfall #23 防第 4 次复发).
券商id,回填请求的券商id
Implementations§
Source§impl HistoryCashFlowRsp
impl HistoryCashFlowRsp
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 period_type(&self) -> u32
pub fn period_type(&self) -> u32
Returns the value of period_type, or the default value if period_type is unset.
Sourcepub fn has_more(&self) -> u32
pub fn has_more(&self) -> u32
Returns the value of has_more, or the default value if has_more is unset.
Sourcepub fn error_code(&self) -> i32
pub fn error_code(&self) -> i32
Returns the value of error_code, or the default value if error_code is unset.
Trait Implementations§
Source§impl Clone for HistoryCashFlowRsp
impl Clone for HistoryCashFlowRsp
Source§fn clone(&self) -> HistoryCashFlowRsp
fn clone(&self) -> HistoryCashFlowRsp
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 HistoryCashFlowRsp
impl Debug for HistoryCashFlowRsp
Source§impl Default for HistoryCashFlowRsp
impl Default for HistoryCashFlowRsp
Source§impl Message for HistoryCashFlowRsp
impl Message for HistoryCashFlowRsp
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 HistoryCashFlowRsp
impl PartialEq for HistoryCashFlowRsp
impl StructuralPartialEq for HistoryCashFlowRsp
Auto Trait Implementations§
impl Freeze for HistoryCashFlowRsp
impl RefUnwindSafe for HistoryCashFlowRsp
impl Send for HistoryCashFlowRsp
impl Sync for HistoryCashFlowRsp
impl Unpin for HistoryCashFlowRsp
impl UnsafeUnpin for HistoryCashFlowRsp
impl UnwindSafe for HistoryCashFlowRsp
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