#[non_exhaustive]pub struct StrategyTradeSelection {
pub trade_index: usize,
pub symbol: String,
pub timeframe: Timeframe,
pub entry_time: DateTime<Utc>,
pub exit_time: Option<DateTime<Utc>>,
}Expand description
A trade to reveal on the chart. The host switches symbol and interval, scrolls to the entry and highlights the span; an open trade has no exit boundary.
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.trade_index: usizeIndex into the report’s original trades, independent of display sorting or invalid rows.
symbol: StringInstrument of the report.
timeframe: TimeframeSource interval of the report.
entry_time: DateTime<Utc>Start of the trade’s span.
exit_time: Option<DateTime<Utc>>End of the trade’s span, or None while open.
Trait Implementations§
Source§impl Clone for StrategyTradeSelection
impl Clone for StrategyTradeSelection
Source§fn clone(&self) -> StrategyTradeSelection
fn clone(&self) -> StrategyTradeSelection
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 StrategyTradeSelection
impl Debug for StrategyTradeSelection
Source§impl PartialEq for StrategyTradeSelection
impl PartialEq for StrategyTradeSelection
impl StructuralPartialEq for StrategyTradeSelection
Auto Trait Implementations§
impl Freeze for StrategyTradeSelection
impl RefUnwindSafe for StrategyTradeSelection
impl Send for StrategyTradeSelection
impl Sync for StrategyTradeSelection
impl Unpin for StrategyTradeSelection
impl UnsafeUnpin for StrategyTradeSelection
impl UnwindSafe for StrategyTradeSelection
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more