pub struct ConfigureTabBarOptions {
pub items: Vec<TabItem>,
pub selected_id: Option<String>,
pub tint: Option<String>,
pub accessory: Option<AccessoryItem>,
}Fields§
§items: Vec<TabItem>§selected_id: Option<String>Tab to select initially; defaults to the first item.
tint: Option<String>Hex accent color #RRGGBB[AA] — selected-item color on iOS, glass
capsule tint + selected segment color on macOS.
accessory: Option<AccessoryItem>Optional circular account button beside the bar (iOS). Ignored on macOS, where the account button is an overlay component instead.
Trait Implementations§
Source§impl Clone for ConfigureTabBarOptions
impl Clone for ConfigureTabBarOptions
Source§fn clone(&self) -> ConfigureTabBarOptions
fn clone(&self) -> ConfigureTabBarOptions
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 ConfigureTabBarOptions
impl Debug for ConfigureTabBarOptions
Source§impl<'de> Deserialize<'de> for ConfigureTabBarOptions
impl<'de> Deserialize<'de> for ConfigureTabBarOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ConfigureTabBarOptions
impl RefUnwindSafe for ConfigureTabBarOptions
impl Send for ConfigureTabBarOptions
impl Sync for ConfigureTabBarOptions
impl Unpin for ConfigureTabBarOptions
impl UnsafeUnpin for ConfigureTabBarOptions
impl UnwindSafe for ConfigureTabBarOptions
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