pub struct FuturePstnInfoRsp {
pub msg_header: Option<MsgHeader>,
pub result: Option<i32>,
pub err_msg: Option<String>,
pub has_more: Option<bool>,
pub session_id: Option<String>,
pub next_suquence: Option<String>,
pub future_pstn_info: Option<FuturePstnInfo>,
}Fields§
§msg_header: Option<MsgHeader>§result: Option<i32>§err_msg: Option<String>§has_more: Option<bool>是否还有更多数据。false没有,请求结束;true还有更多,继续请求并带上以下两个字段
session_id: Option<String>has_more为true时,下次请求带上
next_suquence: Option<String>has_more为true时,下次请求带上
future_pstn_info: Option<FuturePstnInfo>期货持仓详细信息
Implementations§
Source§impl FuturePstnInfoRsp
impl FuturePstnInfoRsp
Sourcepub fn result(&self) -> i32
pub fn result(&self) -> i32
Returns the value of result, or the default value if result is unset.
Sourcepub fn err_msg(&self) -> &str
pub fn err_msg(&self) -> &str
Returns the value of err_msg, or the default value if err_msg is unset.
Sourcepub fn has_more(&self) -> bool
pub fn has_more(&self) -> bool
Returns the value of has_more, or the default value if has_more is unset.
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
Returns the value of session_id, or the default value if session_id is unset.
Sourcepub fn next_suquence(&self) -> &str
pub fn next_suquence(&self) -> &str
Returns the value of next_suquence, or the default value if next_suquence is unset.
Trait Implementations§
Source§impl Clone for FuturePstnInfoRsp
impl Clone for FuturePstnInfoRsp
Source§fn clone(&self) -> FuturePstnInfoRsp
fn clone(&self) -> FuturePstnInfoRsp
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 FuturePstnInfoRsp
impl Debug for FuturePstnInfoRsp
Source§impl Default for FuturePstnInfoRsp
impl Default for FuturePstnInfoRsp
Source§impl Message for FuturePstnInfoRsp
impl Message for FuturePstnInfoRsp
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 FuturePstnInfoRsp
impl PartialEq for FuturePstnInfoRsp
impl StructuralPartialEq for FuturePstnInfoRsp
Auto Trait Implementations§
impl Freeze for FuturePstnInfoRsp
impl RefUnwindSafe for FuturePstnInfoRsp
impl Send for FuturePstnInfoRsp
impl Sync for FuturePstnInfoRsp
impl Unpin for FuturePstnInfoRsp
impl UnsafeUnpin for FuturePstnInfoRsp
impl UnwindSafe for FuturePstnInfoRsp
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