pub struct SymbolSnapshot {
pub symbol: String,
pub close_history: Vec<f64>,
pub fundamentals: BTreeMap<String, f64>,
pub news: Vec<String>,
}Expand description
Point-in-time data for one instrument.
Fields§
§symbol: String§close_history: Vec<f64>Trailing closes up to and including date (oldest first).
fundamentals: BTreeMap<String, f64>Named fundamental fields (e.g. pe, revenue_yoy). Empty if unavailable.
news: Vec<String>Headlines published on or before date.
Trait Implementations§
Source§impl Clone for SymbolSnapshot
impl Clone for SymbolSnapshot
Source§fn clone(&self) -> SymbolSnapshot
fn clone(&self) -> SymbolSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SymbolSnapshot
impl Debug for SymbolSnapshot
Source§impl<'de> Deserialize<'de> for SymbolSnapshot
impl<'de> Deserialize<'de> for SymbolSnapshot
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 SymbolSnapshot
impl RefUnwindSafe for SymbolSnapshot
impl Send for SymbolSnapshot
impl Sync for SymbolSnapshot
impl Unpin for SymbolSnapshot
impl UnsafeUnpin for SymbolSnapshot
impl UnwindSafe for SymbolSnapshot
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