pub struct UsShortDailyInfo {
pub timestamp: Option<u64>,
pub total_shares_short: Option<u64>,
pub nasdaq_shares_short: Option<u64>,
pub nyse_shares_short: Option<u64>,
pub short_percent: Option<u32>,
pub volume: Option<u64>,
pub close_price: Option<i64>,
pub last_close_price: Option<i64>,
pub daily_trade_avg_ratio: Option<i32>,
}Fields§
§timestamp: Option<u64>§short_percent: Option<u32>§volume: Option<u64>§close_price: Option<i64>§last_close_price: Option<i64>§daily_trade_avg_ratio: Option<i32>Implementations§
Source§impl UsShortDailyInfo
impl UsShortDailyInfo
Sourcepub fn timestamp(&self) -> u64
pub fn timestamp(&self) -> u64
Returns the value of timestamp, or the default value if timestamp is unset.
Returns the value of total_shares_short, or the default value if total_shares_short is unset.
Returns the value of nasdaq_shares_short, or the default value if nasdaq_shares_short is unset.
Returns the value of nyse_shares_short, or the default value if nyse_shares_short is unset.
Sourcepub fn short_percent(&self) -> u32
pub fn short_percent(&self) -> u32
Returns the value of short_percent, or the default value if short_percent 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 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 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 daily_trade_avg_ratio(&self) -> i32
pub fn daily_trade_avg_ratio(&self) -> i32
Returns the value of daily_trade_avg_ratio, or the default value if daily_trade_avg_ratio is unset.
Trait Implementations§
Source§impl Clone for UsShortDailyInfo
impl Clone for UsShortDailyInfo
Source§fn clone(&self) -> UsShortDailyInfo
fn clone(&self) -> UsShortDailyInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UsShortDailyInfo
impl Debug for UsShortDailyInfo
Source§impl Default for UsShortDailyInfo
impl Default for UsShortDailyInfo
Source§impl Hash for UsShortDailyInfo
impl Hash for UsShortDailyInfo
Source§impl Message for UsShortDailyInfo
impl Message for UsShortDailyInfo
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
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,
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,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.Source§impl PartialEq for UsShortDailyInfo
impl PartialEq for UsShortDailyInfo
impl Copy for UsShortDailyInfo
impl Eq for UsShortDailyInfo
impl StructuralPartialEq for UsShortDailyInfo
Auto Trait Implementations§
impl Freeze for UsShortDailyInfo
impl RefUnwindSafe for UsShortDailyInfo
impl Send for UsShortDailyInfo
impl Sync for UsShortDailyInfo
impl Unpin for UsShortDailyInfo
impl UnsafeUnpin for UsShortDailyInfo
impl UnwindSafe for UsShortDailyInfo
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
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
§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
§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
key and return true if they are equal.