pub struct CommandItem<'a> {
pub label: &'a str,
pub shortcut: Option<&'a str>,
pub icon: Option<MaterialIcon>,
}Expand description
One command entry displayed inside Frame::command_palette or Frame::command_palette_inline.
Fields§
§label: &'a str§shortcut: Option<&'a str>§icon: Option<MaterialIcon>Trait Implementations§
Source§impl<'a> Clone for CommandItem<'a>
impl<'a> Clone for CommandItem<'a>
impl<'a> Copy for CommandItem<'a>
Auto Trait Implementations§
impl<'a> Forget for CommandItem<'a>
impl<'a> Freeze for CommandItem<'a>
impl<'a> Move for CommandItem<'a>
impl<'a> RefUnwindSafe for CommandItem<'a>
impl<'a> Send for CommandItem<'a>
impl<'a> Sync for CommandItem<'a>
impl<'a> Unpin for CommandItem<'a>
impl<'a> UnsafeUnpin for CommandItem<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for CommandItem<'a>where
&'a str: UnwindSafe,
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