pub struct StockSnapshot {
pub latest_trade: Option<Trade>,
pub latest_quote: Option<Quote>,
pub minute_bar: Option<Bar>,
pub daily_bar: Option<Bar>,
pub prev_daily_bar: Option<Bar>,
}Expand description
Stock snapshot with latest market data.
Fields§
§latest_trade: Option<Trade>Latest trade.
latest_quote: Option<Quote>Latest quote.
minute_bar: Option<Bar>Current minute bar.
daily_bar: Option<Bar>Current daily bar.
prev_daily_bar: Option<Bar>Previous daily bar.
Trait Implementations§
Source§impl Clone for StockSnapshot
impl Clone for StockSnapshot
Source§fn clone(&self) -> StockSnapshot
fn clone(&self) -> StockSnapshot
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 StockSnapshot
impl Debug for StockSnapshot
Source§impl<'de> Deserialize<'de> for StockSnapshot
impl<'de> Deserialize<'de> for StockSnapshot
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<StockSnapshot, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for StockSnapshot
impl Serialize for StockSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for StockSnapshot
impl RefUnwindSafe for StockSnapshot
impl Send for StockSnapshot
impl Sync for StockSnapshot
impl Unpin for StockSnapshot
impl UnwindSafe for StockSnapshot
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