pub struct StatPoint {
pub avg_price: Option<f64>,
pub trade_volume: Option<u64>,
pub trade_num: Option<u64>,
pub buy_volume: Option<u64>,
pub sell_volume: Option<u64>,
pub neutral_volume: Option<u64>,
pub last_close_price: Option<f64>,
}Fields§
§avg_price: Option<f64>平均成交价 (已 / 100000 还原成 f64)
trade_volume: Option<u64>§trade_num: Option<u64>§buy_volume: Option<u64>§sell_volume: Option<u64>§neutral_volume: Option<u64>§last_close_price: Option<f64>Implementations§
Source§impl StatPoint
impl StatPoint
Sourcepub fn avg_price(&self) -> f64
pub fn avg_price(&self) -> f64
Returns the value of avg_price, or the default value if avg_price is unset.
Sourcepub fn trade_volume(&self) -> u64
pub fn trade_volume(&self) -> u64
Returns the value of trade_volume, or the default value if trade_volume is unset.
Sourcepub fn trade_num(&self) -> u64
pub fn trade_num(&self) -> u64
Returns the value of trade_num, or the default value if trade_num is unset.
Sourcepub fn buy_volume(&self) -> u64
pub fn buy_volume(&self) -> u64
Returns the value of buy_volume, or the default value if buy_volume is unset.
Sourcepub fn sell_volume(&self) -> u64
pub fn sell_volume(&self) -> u64
Returns the value of sell_volume, or the default value if sell_volume is unset.
Sourcepub fn neutral_volume(&self) -> u64
pub fn neutral_volume(&self) -> u64
Returns the value of neutral_volume, or the default value if neutral_volume is unset.
Sourcepub fn last_close_price(&self) -> f64
pub fn last_close_price(&self) -> f64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StatPoint
impl<'de> Deserialize<'de> for StatPoint
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for StatPoint
impl Message for StatPoint
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.impl Copy for StatPoint
impl StructuralPartialEq for StatPoint
Auto Trait Implementations§
impl Freeze for StatPoint
impl RefUnwindSafe for StatPoint
impl Send for StatPoint
impl Sync for StatPoint
impl Unpin for StatPoint
impl UnsafeUnpin for StatPoint
impl UnwindSafe for StatPoint
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