pub struct Command {
pub id: &'static str,
pub title: &'static str,
pub group: &'static str,
pub action: Action,
}Fields§
§id: &'static strStable identifier. This is what keys.toml, macros and --exec refer to, so it is
part of the public interface and must not change casually.
title: &'static str§group: &'static strGrouping for the help overlay.
action: ActionTrait Implementations§
impl Copy for Command
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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