pub struct TradingLines {
pub action: Option<TradingLineAction>,
pub tags: Vec<(f64, Color32)>,
pub outlined: Vec<usize>,
pub submitted: Option<OrderRequest>,
}Expand description
What render_trading_lines drew, and what the user asked for.
Fields§
§action: Option<TradingLineAction>What the user asked for on a line in this frame.
The price and colour of each line drawn, a dragged line at its new price, for tags on the
price axis: for example as PriceLines of width 0 passed to
Chart::set_price_lines with the chart’s other lines.
outlined: Vec<usize>Indices in tags that use chart background and a coloured outline.
submitted: Option<OrderRequest>The projected order whose submit button the user pressed.
Auto Trait Implementations§
impl Freeze for TradingLines
impl RefUnwindSafe for TradingLines
impl Send for TradingLines
impl Sync for TradingLines
impl Unpin for TradingLines
impl UnsafeUnpin for TradingLines
impl UnwindSafe for TradingLines
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> 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