pub struct Command<'r> {
pub command: &'r str,
pub func: fn(&[&str], &mut DynamicContext) -> Result<String, Box<dyn Error>>,
pub help_output: &'r str,
}
Fields§
§command: &'r str
§func: fn(&[&str], &mut DynamicContext) -> Result<String, Box<dyn Error>>
§help_output: &'r str
Auto Trait Implementations§
impl<'r> Freeze for Command<'r>
impl<'r> RefUnwindSafe for Command<'r>
impl<'r> Send for Command<'r>
impl<'r> Sync for Command<'r>
impl<'r> Unpin for Command<'r>
impl<'r> UnwindSafe for Command<'r>
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