pub struct Candle { /* private fields */ }Expand description
Свеча торгового инструмента (candles).
Implementations§
Source§impl Candle
impl Candle
Sourcepub fn try_new(
begin: NaiveDateTime,
end: NaiveDateTime,
ohlcv: CandleOhlcv,
) -> Result<Self, ParseCandleError>
pub fn try_new( begin: NaiveDateTime, end: NaiveDateTime, ohlcv: CandleOhlcv, ) -> Result<Self, ParseCandleError>
Построить свечу из границ времени и набора OHLCV с проверкой инвариантов.
Sourcepub fn begin(&self) -> NaiveDateTime
pub fn begin(&self) -> NaiveDateTime
Время начала свечи.
Sourcepub fn end(&self) -> NaiveDateTime
pub fn end(&self) -> NaiveDateTime
Время окончания свечи.
Trait Implementations§
impl StructuralPartialEq for Candle
Auto Trait Implementations§
impl Freeze for Candle
impl RefUnwindSafe for Candle
impl Send for Candle
impl Sync for Candle
impl Unpin for Candle
impl UnsafeUnpin for Candle
impl UnwindSafe for Candle
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