pub struct Series {
pub date: NaiveDate,
pub open: f32,
pub close: f32,
pub high: f32,
pub low: f32,
pub volume: f32,
}Expand description
Series part of the MarketSeries
Fields§
§date: NaiveDatethe date of the stock price
open: f32the opening price of the stock for the selected interval
close: f32the closing price of the stock for the selected interval
high: f32the highest price of the stock for the selected interval
low: f32the lowest price of the stock for the selected interval
volume: f32the number of shares traded in the selected interval
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Series
impl<'de> Deserialize<'de> for Series
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 Series
impl RefUnwindSafe for Series
impl Send for Series
impl Sync for Series
impl Unpin for Series
impl UnwindSafe for Series
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