pub struct ShortSellInfoRsp {
pub stock_id: Option<u64>,
pub short_sell_flag: Option<u32>,
pub short_sell_fee_ratio: Option<u32>,
pub short_sell_available: Option<u32>,
pub next_req_interval_secs: Option<u32>,
}Fields§
§stock_id: Option<u64>股票ID
short_sell_flag: Option<u32>是否支持卖空, 1-支持, 0-不支持
short_sell_fee_ratio: Option<u32>卖空利率, 只有在short_sell_flag=1时才会设置. 放大1000000倍, 例如2471, 表示0.2471%
short_sell_available: Option<u32>剩余可卖空的数量
next_req_interval_secs: Option<u32>下次请求间隔, 单位秒
Implementations§
Source§impl ShortSellInfoRsp
impl ShortSellInfoRsp
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 short_sell_flag(&self) -> u32
pub fn short_sell_flag(&self) -> u32
Returns the value of short_sell_flag, or the default value if short_sell_flag is unset.
Sourcepub fn short_sell_fee_ratio(&self) -> u32
pub fn short_sell_fee_ratio(&self) -> u32
Returns the value of short_sell_fee_ratio, or the default value if short_sell_fee_ratio is unset.
Sourcepub fn short_sell_available(&self) -> u32
pub fn short_sell_available(&self) -> u32
Returns the value of short_sell_available, or the default value if short_sell_available is unset.
Sourcepub fn next_req_interval_secs(&self) -> u32
pub fn next_req_interval_secs(&self) -> u32
Returns the value of next_req_interval_secs, or the default value if next_req_interval_secs is unset.
Trait Implementations§
Source§impl Clone for ShortSellInfoRsp
impl Clone for ShortSellInfoRsp
Source§fn clone(&self) -> ShortSellInfoRsp
fn clone(&self) -> ShortSellInfoRsp
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 ShortSellInfoRsp
impl Debug for ShortSellInfoRsp
Source§impl Default for ShortSellInfoRsp
impl Default for ShortSellInfoRsp
Source§impl Hash for ShortSellInfoRsp
impl Hash for ShortSellInfoRsp
Source§impl Message for ShortSellInfoRsp
impl Message for ShortSellInfoRsp
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 ShortSellInfoRsp
impl PartialEq for ShortSellInfoRsp
impl Copy for ShortSellInfoRsp
impl Eq for ShortSellInfoRsp
impl StructuralPartialEq for ShortSellInfoRsp
Auto Trait Implementations§
impl Freeze for ShortSellInfoRsp
impl RefUnwindSafe for ShortSellInfoRsp
impl Send for ShortSellInfoRsp
impl Sync for ShortSellInfoRsp
impl Unpin for ShortSellInfoRsp
impl UnsafeUnpin for ShortSellInfoRsp
impl UnwindSafe for ShortSellInfoRsp
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.