pub struct PricePerfomanceInfo {
pub trading_day: Option<i64>,
pub close_price: Option<i64>,
pub open_price: Option<i64>,
pub highest_price: Option<i64>,
pub lowest_price: Option<i64>,
pub last_close_price: Option<i64>,
pub volume: Option<u64>,
pub volume_precision: Option<i64>,
pub option_iv: Option<i64>,
pub option_hv: Option<i64>,
}Fields§
§trading_day: Option<i64>§close_price: Option<i64>§open_price: Option<i64>§highest_price: Option<i64>§lowest_price: Option<i64>§last_close_price: Option<i64>§volume: Option<u64>§volume_precision: Option<i64>§option_iv: Option<i64>§option_hv: Option<i64>Implementations§
Source§impl PricePerfomanceInfo
impl PricePerfomanceInfo
Sourcepub fn trading_day(&self) -> i64
pub fn trading_day(&self) -> i64
Returns the value of trading_day, or the default value if trading_day is unset.
Sourcepub fn close_price(&self) -> i64
pub fn close_price(&self) -> i64
Returns the value of close_price, or the default value if close_price is unset.
Sourcepub fn open_price(&self) -> i64
pub fn open_price(&self) -> i64
Returns the value of open_price, or the default value if open_price is unset.
Sourcepub fn highest_price(&self) -> i64
pub fn highest_price(&self) -> i64
Returns the value of highest_price, or the default value if highest_price is unset.
Sourcepub fn lowest_price(&self) -> i64
pub fn lowest_price(&self) -> i64
Returns the value of lowest_price, or the default value if lowest_price is unset.
Sourcepub fn last_close_price(&self) -> i64
pub fn last_close_price(&self) -> i64
Returns the value of last_close_price, or the default value if last_close_price is unset.
Sourcepub fn volume(&self) -> u64
pub fn volume(&self) -> u64
Returns the value of volume, or the default value if volume is unset.
Sourcepub fn volume_precision(&self) -> i64
pub fn volume_precision(&self) -> i64
Returns the value of volume_precision, or the default value if volume_precision is unset.
Trait Implementations§
Source§impl Clone for PricePerfomanceInfo
impl Clone for PricePerfomanceInfo
Source§fn clone(&self) -> PricePerfomanceInfo
fn clone(&self) -> PricePerfomanceInfo
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 PricePerfomanceInfo
impl Debug for PricePerfomanceInfo
Source§impl Default for PricePerfomanceInfo
impl Default for PricePerfomanceInfo
Source§impl Hash for PricePerfomanceInfo
impl Hash for PricePerfomanceInfo
Source§impl Message for PricePerfomanceInfo
impl Message for PricePerfomanceInfo
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 PricePerfomanceInfo
impl PartialEq for PricePerfomanceInfo
impl Copy for PricePerfomanceInfo
impl Eq for PricePerfomanceInfo
impl StructuralPartialEq for PricePerfomanceInfo
Auto Trait Implementations§
impl Freeze for PricePerfomanceInfo
impl RefUnwindSafe for PricePerfomanceInfo
impl Send for PricePerfomanceInfo
impl Sync for PricePerfomanceInfo
impl Unpin for PricePerfomanceInfo
impl UnsafeUnpin for PricePerfomanceInfo
impl UnwindSafe for PricePerfomanceInfo
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.