pub struct CommandDoc {
pub name: &'static str,
pub kind: DocKind,
pub description: String,
}Fields§
§name: &'static str§kind: DocKind§description: StringImplementations§
Source§impl CommandDoc
impl CommandDoc
pub fn handler(name: &'static str, description: impl Into<String>) -> Self
pub fn wordset(name: &'static str, words: &WordSet) -> Self
pub fn wordset_multi( name: &'static str, words: &WordSet, multi: &[(&str, WordSet)], ) -> Self
pub fn flagcheck(name: &'static str, check: &FlagCheck) -> Self
pub fn always_safe(name: &'static str, description: &str) -> Self
Auto Trait Implementations§
impl Freeze for CommandDoc
impl RefUnwindSafe for CommandDoc
impl Send for CommandDoc
impl Sync for CommandDoc
impl Unpin for CommandDoc
impl UnsafeUnpin for CommandDoc
impl UnwindSafe for CommandDoc
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