pub struct TradeStatisticInfo {
pub date: Option<f64>,
pub open_balance: Option<String>,
pub open_mv: Option<String>,
pub order_fill_cnt: Option<String>,
pub turnover: Option<String>,
pub profit: Option<String>,
pub profit_ratio: Option<String>,
}Fields§
§date: Option<f64>时间戳,单位秒
open_balance: Option<String>开盘前现金结余
open_mv: Option<String>开盘前股票市值
order_fill_cnt: Option<String>今日成交笔数
turnover: Option<String>今日成交总额
profit: Option<String>今日总盈亏
profit_ratio: Option<String>今日盈亏比例
Implementations§
Source§impl TradeStatisticInfo
impl TradeStatisticInfo
Sourcepub fn open_balance(&self) -> &str
pub fn open_balance(&self) -> &str
Returns the value of open_balance, or the default value if open_balance is unset.
Sourcepub fn open_mv(&self) -> &str
pub fn open_mv(&self) -> &str
Returns the value of open_mv, or the default value if open_mv is unset.
Sourcepub fn order_fill_cnt(&self) -> &str
pub fn order_fill_cnt(&self) -> &str
Returns the value of order_fill_cnt, or the default value if order_fill_cnt is unset.
Sourcepub fn turnover(&self) -> &str
pub fn turnover(&self) -> &str
Returns the value of turnover, or the default value if turnover is unset.
Sourcepub fn profit(&self) -> &str
pub fn profit(&self) -> &str
Returns the value of profit, or the default value if profit is unset.
Sourcepub fn profit_ratio(&self) -> &str
pub fn profit_ratio(&self) -> &str
Returns the value of profit_ratio, or the default value if profit_ratio is unset.
Trait Implementations§
Source§impl Clone for TradeStatisticInfo
impl Clone for TradeStatisticInfo
Source§fn clone(&self) -> TradeStatisticInfo
fn clone(&self) -> TradeStatisticInfo
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 TradeStatisticInfo
impl Debug for TradeStatisticInfo
Source§impl Default for TradeStatisticInfo
impl Default for TradeStatisticInfo
Source§impl Message for TradeStatisticInfo
impl Message for TradeStatisticInfo
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 TradeStatisticInfo
impl PartialEq for TradeStatisticInfo
impl StructuralPartialEq for TradeStatisticInfo
Auto Trait Implementations§
impl Freeze for TradeStatisticInfo
impl RefUnwindSafe for TradeStatisticInfo
impl Send for TradeStatisticInfo
impl Sync for TradeStatisticInfo
impl Unpin for TradeStatisticInfo
impl UnsafeUnpin for TradeStatisticInfo
impl UnwindSafe for TradeStatisticInfo
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