#[non_exhaustive]pub struct Trendbar {
pub symbol: SymbolId,
pub period: Period,
pub timestamp: Timestamp,
pub open: Price,
pub high: Price,
pub low: Price,
pub close: Price,
pub volume: u64,
}Expand description
Prices of a symbol over one period.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: SymbolIdSymbol the bar belongs to.
period: PeriodLength of time the bar covers.
timestamp: TimestampMoment the bar starts.
open: PriceFirst price of the period.
high: PriceHighest price of the period.
low: PriceLowest price of the period.
close: PriceLast price of the period.
volume: u64Number of price changes within the period.
Trait Implementations§
impl Copy for Trendbar
impl Eq for Trendbar
impl StructuralPartialEq for Trendbar
Auto Trait Implementations§
impl Forget for Trendbar
impl Freeze for Trendbar
impl Move for Trendbar
impl RefUnwindSafe for Trendbar
impl Send for Trendbar
impl Sync for Trendbar
impl Unpin for Trendbar
impl UnsafeUnpin for Trendbar
impl UnwindSafe for Trendbar
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