Skip to main content

CmdInfoCmd

Type Alias CmdInfoCmd 

Source
pub type CmdInfoCmd<'a> = CmdInfo<'a, HandlerType>;

Aliased Type§

pub struct CmdInfoCmd<'a> {
    pub handler: Rc<dyn Fn(&mut Engine<'_>, &[&str]) -> Result<(), Box<dyn Error>>>,
    pub required: Vec<&'a str>,
    pub optional: Vec<&'a str>,
    pub unlimited: bool,
    pub docs: &'static str,
}

Fields§

§handler: Rc<dyn Fn(&mut Engine<'_>, &[&str]) -> Result<(), Box<dyn Error>>>§required: Vec<&'a str>§optional: Vec<&'a str>§unlimited: bool§docs: &'static str