pub struct SidebarItemData {
pub title: String,
pub icon: Option<String>,
}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>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 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