pub struct RealFlowTrendRsp {
pub stock_id: Option<u64>,
pub section_list: Vec<FlowTrendSection>,
pub next_req_interval: Option<u32>,
pub update_time: Option<u64>,
pub error_code: Option<i32>,
pub broker_id: Option<i32>,
}Expand description
实时流向,回包结构
Fields§
§stock_id: Option<u64>股票ID
section_list: Vec<FlowTrendSection>返回的数据项, 按交易时间段划分
next_req_interval: Option<u32>下次查询时间间隔, 单位秒
update_time: Option<u64>数据更新时间
error_code: Option<i32>错误码,参考ErrorCode
broker_id: Option<i32>v1.4.110 final E.5 LOW: 补 field 6 对齐 C++ NNProtoFile/Server/PB/Quote/FTCmdCash_flow_cs.proto:65. Rust handler 暂无 caller 但 proto 不留漂移 (per pitfall #23 防第 4 次复发).
券商id,回填请求的券商id
Implementations§
Source§impl RealFlowTrendRsp
impl RealFlowTrendRsp
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 next_req_interval(&self) -> u32
pub fn next_req_interval(&self) -> u32
Returns the value of next_req_interval, or the default value if next_req_interval is unset.
Sourcepub fn update_time(&self) -> u64
pub fn update_time(&self) -> u64
Returns the value of update_time, or the default value if update_time 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 RealFlowTrendRsp
impl Clone for RealFlowTrendRsp
Source§fn clone(&self) -> RealFlowTrendRsp
fn clone(&self) -> RealFlowTrendRsp
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 RealFlowTrendRsp
impl Debug for RealFlowTrendRsp
Source§impl Default for RealFlowTrendRsp
impl Default for RealFlowTrendRsp
Source§impl Message for RealFlowTrendRsp
impl Message for RealFlowTrendRsp
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 RealFlowTrendRsp
impl PartialEq for RealFlowTrendRsp
impl StructuralPartialEq for RealFlowTrendRsp
Auto Trait Implementations§
impl Freeze for RealFlowTrendRsp
impl RefUnwindSafe for RealFlowTrendRsp
impl Send for RealFlowTrendRsp
impl Sync for RealFlowTrendRsp
impl Unpin for RealFlowTrendRsp
impl UnsafeUnpin for RealFlowTrendRsp
impl UnwindSafe for RealFlowTrendRsp
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