pub struct ShellCommand {
pub name: &'static str,
pub aliases: &'static [&'static str],
pub help: &'static str,
pub handler: fn(input: &str) -> bool,
}
Expand description
Shell command struct with metadata
Fields§
§name: &'static str
§aliases: &'static [&'static str]
§help: &'static str
§handler: fn(input: &str) -> bool
Trait Implementations§
Source§impl Clone for ShellCommand
impl Clone for ShellCommand
Source§fn clone(&self) -> ShellCommand
fn clone(&self) -> ShellCommand
Returns a copy 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 ShellCommand
impl RefUnwindSafe for ShellCommand
impl Send for ShellCommand
impl Sync for ShellCommand
impl Unpin for ShellCommand
impl UnwindSafe for ShellCommand
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