pub struct SidebarItemData {
pub title: String,
pub icon: Option<String>,
pub subtitle: Option<String>,
pub menu: Vec<MenuEntry>,
}Expand description
One item of a Sidebar: its title, and the name of its icon in the
platform’s own set (an SF Symbol, a symbolic theme icon, a Segoe
Fluent Icons glyph), which platforms without it ignore.
Fields§
§title: String§icon: Option<String>§subtitle: Option<String>A second line under the title, in the platform’s secondary style.
Its context menu (empty: none). The platform shows it its own way,
on the item, and reports the choice as the sidebar’s
ContextMenuItem; ids are unique across the sidebar’s items.
Trait Implementations§
Source§impl Clone for SidebarItemData
impl Clone for SidebarItemData
Source§impl Debug for SidebarItemData
impl Debug for SidebarItemData
Source§impl Default for SidebarItemData
impl Default for SidebarItemData
Source§impl PartialEq for SidebarItemData
impl PartialEq for SidebarItemData
impl StructuralPartialEq for SidebarItemData
Auto Trait Implementations§
impl Forget for SidebarItemData
impl Freeze for SidebarItemData
impl RefUnwindSafe for SidebarItemData
impl Send for SidebarItemData
impl Sync for SidebarItemData
impl Unpin for SidebarItemData
impl UnsafeUnpin for SidebarItemData
impl UnwindSafe for SidebarItemData
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