pub struct TradingToast {
pub symbol: String,
pub logo: Option<String>,
pub side: OrderSide,
pub quantity: f64,
pub price: String,
pub executed: bool,
}Expand description
Structured details of an order notification, rendered as symbol and side chips.
Fields§
§symbol: StringInstrument identifier.
logo: Option<String>URI of the symbol logo, for egui’s installed image loaders. Without one, or while it is loading or unreadable, the chip shows the symbol’s initial.
side: OrderSideBuy or sell.
quantity: f64Filled or placed quantity.
price: StringPrice formatted at the instrument’s precision.
executed: boolExecuted orders have a check; placements have a side chevron.
Trait Implementations§
Source§impl Clone for TradingToast
impl Clone for TradingToast
Source§fn clone(&self) -> TradingToast
fn clone(&self) -> TradingToast
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 moreAuto Trait Implementations§
impl Freeze for TradingToast
impl RefUnwindSafe for TradingToast
impl Send for TradingToast
impl Sync for TradingToast
impl Unpin for TradingToast
impl UnsafeUnpin for TradingToast
impl UnwindSafe for TradingToast
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