pub struct StreamQuote {
pub symbol: Option<String>,
pub last: Option<String>,
pub ask: Option<String>,
pub bid: Option<String>,
pub volume: Option<String>,
pub trade_time: Option<String>,
pub status: Option<String>,
}Expand description
A streaming quote update.
Contains real-time quote data or a stream status message. Use StreamQuote::is_status
to distinguish between the two.
Fields§
§symbol: Option<String>Ticker symbol.
last: Option<String>Last traded price.
ask: Option<String>Best ask price.
bid: Option<String>Best bid price.
volume: Option<String>Cumulative volume.
trade_time: Option<String>Time of the last trade.
status: Option<String>Stream status (present only for status messages).
Implementations§
Source§impl StreamQuote
impl StreamQuote
Trait Implementations§
Source§impl Clone for StreamQuote
impl Clone for StreamQuote
Source§fn clone(&self) -> StreamQuote
fn clone(&self) -> StreamQuote
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 StreamQuote
impl Debug for StreamQuote
Source§impl<'de> Deserialize<'de> for StreamQuote
impl<'de> Deserialize<'de> for StreamQuote
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
Auto Trait Implementations§
impl Freeze for StreamQuote
impl RefUnwindSafe for StreamQuote
impl Send for StreamQuote
impl Sync for StreamQuote
impl Unpin for StreamQuote
impl UnsafeUnpin for StreamQuote
impl UnwindSafe for StreamQuote
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