pub struct BrokerPicker {
pub tiles: Vec<BrokerTile>,
/* private fields */
}Expand description
The dialog in which the user picks a broker: a grid of the host’s BrokerTiles, the
paper account first, with a search and a footer link. Its compare button shows the
facts of two brokers side by side in aligned rows, with a control to
add another and one to connect each. Picking a tile shows its connect card,
whose Connect button returns BrokerPickerAction::Connect and closes the picker; the host
then connects Trading to that broker. Open it with
open, such as from the toolbar’s Trade button while no broker is connected.
Fields§
§tiles: Vec<BrokerTile>The tiles, in order. new puts the paper account first.
Implementations§
Source§impl BrokerPicker
impl BrokerPicker
Sourcepub fn new(tiles: Vec<BrokerTile>) -> Self
pub fn new(tiles: Vec<BrokerTile>) -> Self
A closed picker showing the paper account, then tiles.
Sourcepub fn show(&mut self, ctx: &Context) -> Option<BrokerPickerAction>
pub fn show(&mut self, ctx: &Context) -> Option<BrokerPickerAction>
Shows the picker while it is open, and its connect card.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BrokerPicker
impl RefUnwindSafe for BrokerPicker
impl Send for BrokerPicker
impl Sync for BrokerPicker
impl Unpin for BrokerPicker
impl UnsafeUnpin for BrokerPicker
impl UnwindSafe for BrokerPicker
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