pub struct CommandDoc {
pub name: String,
pub kind: DocKind,
pub url: String,
pub description: String,
pub aliases: Vec<String>,
pub category: String,
pub examples: Vec<String>,
}Fields§
§name: String§kind: DocKind§url: String§description: String§aliases: Vec<String>§category: String§examples: Vec<String>Implementations§
Source§impl CommandDoc
impl CommandDoc
pub fn handler( name: impl Into<String>, url: impl Into<String>, description: impl Into<String>, category: &str, ) -> Self
pub fn wordset( name: &'static str, url: &'static str, words: &WordSet, category: &str, ) -> Self
pub fn wordset_multi( name: &'static str, url: &'static str, words: &WordSet, multi: &[(&str, WordSet)], category: &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