pub struct RealDistributionRsp {
pub stock_id: Option<u64>,
pub items: Vec<DistributionItem>,
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
items: Vec<DistributionItem>返回的数据项
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:81. Rust handler 暂无 caller 但 proto 不留漂移 (per pitfall #23 防第 4 次复发).
券商id,回填请求的券商id
Implementations§
Source§impl RealDistributionRsp
impl RealDistributionRsp
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 RealDistributionRsp
impl Clone for RealDistributionRsp
Source§fn clone(&self) -> RealDistributionRsp
fn clone(&self) -> RealDistributionRsp
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 RealDistributionRsp
impl Debug for RealDistributionRsp
Source§impl Default for RealDistributionRsp
impl Default for RealDistributionRsp
Source§impl Message for RealDistributionRsp
impl Message for RealDistributionRsp
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 RealDistributionRsp
impl PartialEq for RealDistributionRsp
impl StructuralPartialEq for RealDistributionRsp
Auto Trait Implementations§
impl Freeze for RealDistributionRsp
impl RefUnwindSafe for RealDistributionRsp
impl Send for RealDistributionRsp
impl Sync for RealDistributionRsp
impl Unpin for RealDistributionRsp
impl UnsafeUnpin for RealDistributionRsp
impl UnwindSafe for RealDistributionRsp
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