#[non_exhaustive]pub struct BrokerTile {
pub id: String,
pub name: String,
pub icon: Option<ImageSource<'static>>,
pub subtitle: Option<String>,
pub rating: Option<f32>,
pub featured: bool,
pub favorite: bool,
pub description: String,
pub facts: Vec<(String, BrokerFact)>,
}Expand description
One broker of the BrokerPicker, as the host offers it.
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.id: StringThe host’s id for the broker, returned by BrokerPickerAction::Connect.
name: StringThe broker’s name.
icon: Option<ImageSource<'static>>The broker’s logo, drawn in a 48 point square. Without one the tile shows the name’s first letter.
subtitle: Option<String>A line under the name, such as what the broker offers.
rating: Option<f32>A rating out of 5, shown with a star under the name when there is no subtitle.
featured: boolMarks the tile as featured.
favorite: boolThe user’s favourite; the user toggles it with the tile’s star. Persist it in the host.
description: StringWhat the connect card says about the broker.
facts: Vec<(String, BrokerFact)>The rows of the comparison view by label, such as pricing, leverage and features. A label that another compared broker has and this one lacks shows as not available.
Implementations§
Trait Implementations§
Source§impl Clone for BrokerTile
impl Clone for BrokerTile
Source§fn clone(&self) -> BrokerTile
fn clone(&self) -> BrokerTile
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 BrokerTile
impl RefUnwindSafe for BrokerTile
impl Send for BrokerTile
impl Sync for BrokerTile
impl Unpin for BrokerTile
impl UnsafeUnpin for BrokerTile
impl UnwindSafe for BrokerTile
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