pub struct PaletteCommand {
pub label: String,
pub description: String,
pub shortcut: Option<String>,
}Expand description
A single command entry in the palette.
Fields§
§label: StringPrimary command label.
description: StringSupplemental command description.
shortcut: Option<String>Optional keyboard shortcut hint.
Implementations§
Trait Implementations§
Source§impl Clone for PaletteCommand
impl Clone for PaletteCommand
Source§fn clone(&self) -> PaletteCommand
fn clone(&self) -> PaletteCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PaletteCommand
impl RefUnwindSafe for PaletteCommand
impl Send for PaletteCommand
impl Sync for PaletteCommand
impl Unpin for PaletteCommand
impl UnsafeUnpin for PaletteCommand
impl UnwindSafe for PaletteCommand
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