pub struct Description {
pub purpose: Cow<'static, str>,
pub usage: Cow<'static, str>,
pub examples: Vec<Example>,
}Expand description
A comprehensive description of a command. May include examples.
Fields§
§purpose: Cow<'static, str>Why the command exists. One (or more) fully punctuated sentences.
usage: Cow<'static, str>Syntax for arguments, if any. Leave blank if the command does not accept arguments. (Do not include the name of the command.)
examples: Vec<Example>Zero or more examples. Should be empty if the command does not take arguments, in which case the example is implied.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Source§fn clone(&self) -> Description
fn clone(&self) -> Description
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnwindSafe for Description
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