pub struct FuturePstnInfoReq {
pub msg_header: Option<MsgHeader>,
pub pstn_id: Option<String>,
pub session_id: Option<String>,
pub suquence: Option<String>,
pub with_position_im: Option<bool>,
}Expand description
获取某个期货持仓详细信息
Fields§
§msg_header: Option<MsgHeader>§pstn_id: Option<String>持仓ID
session_id: Option<String>当上次返回has_more为true时,填上次返回的session_id
suquence: Option<String>当上次返回has_more为true时,填上次返回的next_suquence
with_position_im: Option<bool>risk oa使用
是否计算单个品种持仓保证金, 默认不计算
Implementations§
Source§impl FuturePstnInfoReq
impl FuturePstnInfoReq
Sourcepub fn pstn_id(&self) -> &str
pub fn pstn_id(&self) -> &str
Returns the value of pstn_id, or the default value if pstn_id 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 suquence(&self) -> &str
pub fn suquence(&self) -> &str
Returns the value of suquence, or the default value if suquence is unset.
Sourcepub fn with_position_im(&self) -> bool
pub fn with_position_im(&self) -> bool
Returns the value of with_position_im, or the default value if with_position_im is unset.
Trait Implementations§
Source§impl Clone for FuturePstnInfoReq
impl Clone for FuturePstnInfoReq
Source§fn clone(&self) -> FuturePstnInfoReq
fn clone(&self) -> FuturePstnInfoReq
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 FuturePstnInfoReq
impl Debug for FuturePstnInfoReq
Source§impl Default for FuturePstnInfoReq
impl Default for FuturePstnInfoReq
Source§impl Hash for FuturePstnInfoReq
impl Hash for FuturePstnInfoReq
Source§impl Message for FuturePstnInfoReq
impl Message for FuturePstnInfoReq
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 FuturePstnInfoReq
impl PartialEq for FuturePstnInfoReq
impl Eq for FuturePstnInfoReq
impl StructuralPartialEq for FuturePstnInfoReq
Auto Trait Implementations§
impl Freeze for FuturePstnInfoReq
impl RefUnwindSafe for FuturePstnInfoReq
impl Send for FuturePstnInfoReq
impl Sync for FuturePstnInfoReq
impl Unpin for FuturePstnInfoReq
impl UnsafeUnpin for FuturePstnInfoReq
impl UnwindSafe for FuturePstnInfoReq
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
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
Checks if this value is equivalent to the given key. Read more
§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
Checks if this value is equivalent to the given key. Read more
§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
Compare self to
key and return true if they are equal.