pub struct PriceBarItem {
pub date_ms: UnixMillis,
pub open_price: f64,
pub high_price: f64,
pub low_price: f64,
pub close_price: f64,
pub volume: f64,
pub turnover: f64,
}Expand description
One daily OHLCV bar.
Fields§
§date_ms: UnixMillis§open_price: f64§high_price: f64§low_price: f64§close_price: f64§volume: f64§turnover: f64Trait Implementations§
Source§impl Clone for PriceBarItem
impl Clone for PriceBarItem
Source§fn clone(&self) -> PriceBarItem
fn clone(&self) -> PriceBarItem
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 PriceBarItem
impl Debug for PriceBarItem
Source§impl<'de> Deserialize<'de> for PriceBarItem
impl<'de> Deserialize<'de> for PriceBarItem
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
Source§impl PartialEq for PriceBarItem
impl PartialEq for PriceBarItem
impl StructuralPartialEq for PriceBarItem
Auto Trait Implementations§
impl Freeze for PriceBarItem
impl RefUnwindSafe for PriceBarItem
impl Send for PriceBarItem
impl Sync for PriceBarItem
impl Unpin for PriceBarItem
impl UnsafeUnpin for PriceBarItem
impl UnwindSafe for PriceBarItem
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