pub struct UsShortInfo {
pub timestamp: Option<u64>,
pub shares_short: Option<u64>,
pub short_percent: Option<u32>,
pub avg_daily_share_volume: Option<u64>,
pub days_to_cover: Option<u32>,
pub price_close: Option<u64>,
pub price_close_new: Option<i64>,
pub last_close_price: Option<i64>,
}Fields§
§timestamp: Option<u64>§short_percent: Option<u32>§days_to_cover: Option<u32>§price_close: Option<u64>§price_close_new: Option<i64>§last_close_price: Option<i64>Implementations§
Source§impl UsShortInfo
impl UsShortInfo
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 shares_short, or the default value if 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.
Returns the value of avg_daily_share_volume, or the default value if avg_daily_share_volume is unset.
Sourcepub fn days_to_cover(&self) -> u32
pub fn days_to_cover(&self) -> u32
Returns the value of days_to_cover, or the default value if days_to_cover is unset.
Sourcepub fn price_close(&self) -> u64
pub fn price_close(&self) -> u64
Returns the value of price_close, or the default value if price_close is unset.
Sourcepub fn price_close_new(&self) -> i64
pub fn price_close_new(&self) -> i64
Returns the value of price_close_new, or the default value if price_close_new 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.
Trait Implementations§
Source§impl Clone for UsShortInfo
impl Clone for UsShortInfo
Source§fn clone(&self) -> UsShortInfo
fn clone(&self) -> UsShortInfo
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 UsShortInfo
impl Debug for UsShortInfo
Source§impl Default for UsShortInfo
impl Default for UsShortInfo
Source§impl Hash for UsShortInfo
impl Hash for UsShortInfo
Source§impl Message for UsShortInfo
impl Message for UsShortInfo
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 UsShortInfo
impl PartialEq for UsShortInfo
impl Copy for UsShortInfo
impl Eq for UsShortInfo
impl StructuralPartialEq for UsShortInfo
Auto Trait Implementations§
impl Freeze for UsShortInfo
impl RefUnwindSafe for UsShortInfo
impl Send for UsShortInfo
impl Sync for UsShortInfo
impl Unpin for UsShortInfo
impl UnsafeUnpin for UsShortInfo
impl UnwindSafe for UsShortInfo
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.