#[non_exhaustive]pub enum AccountPanelAction {
SelectSymbol(String),
SelectAccount(usize),
Disconnect,
Settings,
Minimize,
Maximize,
Export {
name: String,
csv: String,
},
}Expand description
What the user asked for in the AccountPanel that the host carries out. Cancelling or
changing an order and closing a position go to the broker from the panel itself.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SelectSymbol(String)
Show this symbol on the chart.
SelectAccount(usize)
Connect to the account at this index of AccountPanel::accounts.
Disconnect
Disconnect from the broker.
Settings
Open the account’s settings, such as resetting a paper account.
Minimize
Collapse the panel to its tab bar, or restore it.
Maximize
Give the panel the full height, or restore it.
Export
The table in view as comma-separated values, for the host to save as name.csv.
Trait Implementations§
Source§impl Clone for AccountPanelAction
impl Clone for AccountPanelAction
Source§fn clone(&self) -> AccountPanelAction
fn clone(&self) -> AccountPanelAction
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 AccountPanelAction
impl Debug for AccountPanelAction
Source§impl PartialEq for AccountPanelAction
impl PartialEq for AccountPanelAction
impl StructuralPartialEq for AccountPanelAction
Auto Trait Implementations§
impl Freeze for AccountPanelAction
impl RefUnwindSafe for AccountPanelAction
impl Send for AccountPanelAction
impl Sync for AccountPanelAction
impl Unpin for AccountPanelAction
impl UnsafeUnpin for AccountPanelAction
impl UnwindSafe for AccountPanelAction
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