pub struct CommandSpec {
pub name: &'static str,
pub py_module: &'static str,
pub description: &'static str,
pub group: Group,
pub hint: &'static str,
pub run: fn(args: &[OsString]) -> Result<i32>,
pub command: fn() -> Command,
}Fields§
§name: &'static str§py_module: &'static strThe Python module the command was ported from, for the XILP/XILU tag
in --help.
description: &'static str§group: Group§hint: &'static str§run: fn(args: &[OsString]) -> Result<i32>§command: fn() -> CommandThe command’s clap definition, for man pages.
Auto Trait Implementations§
impl Freeze for CommandSpec
impl RefUnwindSafe for CommandSpec
impl Send for CommandSpec
impl Sync for CommandSpec
impl Unpin for CommandSpec
impl UnsafeUnpin for CommandSpec
impl UnwindSafe for CommandSpec
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