pub struct TabItem {
pub id: String,
pub title: String,
pub sf_symbol: Option<String>,
pub image: Option<String>,
pub circular: Option<bool>,
pub badge: Option<String>,
}Expand description
A single tab in the native bottom tab bar.
Fields§
§id: StringStable identifier reported back in tabSelected events.
title: StringUser-visible label under the icon.
sf_symbol: Option<String>SF Symbol name (e.g. “house.fill”). Must exist on the device’s OS version; unknown names render a label-only item.
image: Option<String>Bitmap icon as base64 (raw or data: URL) — e.g. a user avatar.
Takes precedence over sf_symbol.
circular: Option<bool>Clip the bitmap image to a circle (avatar style).
badge: Option<String>Optional badge text (e.g. “3”). None shows no badge.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TabItem
impl<'de> Deserialize<'de> for TabItem
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 TabItem
impl RefUnwindSafe for TabItem
impl Send for TabItem
impl Sync for TabItem
impl Unpin for TabItem
impl UnsafeUnpin for TabItem
impl UnwindSafe for TabItem
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