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