Skip to main content

CandlestickComponents

Struct CandlestickComponents 

Source
pub struct CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType> {
    pub time: OffsetDateTime,
    pub open: PriceType,
    pub high: PriceType,
    pub low: PriceType,
    pub close: PriceType,
    pub volume: VolumeType,
    pub turnover: TurnoverType,
    pub trade_session: TradeSessionType,
    pub open_updated: bool,
}

Fields§

§time: OffsetDateTime§open: PriceType§high: PriceType§low: PriceType§close: PriceType§volume: VolumeType§turnover: TurnoverType§trade_session: TradeSessionType§open_updated: bool

Trait Implementations§

Source§

impl<PriceType: Debug, VolumeType: Debug, TurnoverType: Debug, TradeSessionType: Debug> Debug for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> Freeze for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: Freeze, VolumeType: Freeze, TurnoverType: Freeze, TradeSessionType: Freeze,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> RefUnwindSafe for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: RefUnwindSafe, VolumeType: RefUnwindSafe, TurnoverType: RefUnwindSafe, TradeSessionType: RefUnwindSafe,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> Send for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: Send, VolumeType: Send, TurnoverType: Send, TradeSessionType: Send,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> Sync for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: Sync, VolumeType: Sync, TurnoverType: Sync, TradeSessionType: Sync,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> Unpin for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: Unpin, VolumeType: Unpin, TurnoverType: Unpin, TradeSessionType: Unpin,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> UnsafeUnpin for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: UnsafeUnpin, VolumeType: UnsafeUnpin, TurnoverType: UnsafeUnpin, TradeSessionType: UnsafeUnpin,

§

impl<PriceType, VolumeType, TurnoverType, TradeSessionType> UnwindSafe for CandlestickComponents<PriceType, VolumeType, TurnoverType, TradeSessionType>
where PriceType: UnwindSafe, VolumeType: UnwindSafe, TurnoverType: UnwindSafe, TradeSessionType: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.