pub struct CommandDoc {
pub description: Option<String>,
pub examples: Vec<String>,
pub notes: Vec<String>,
}Expand description
extra help metadata layered on top of clap output.
Fields§
§description: Option<String>short blurb shown under the header.
examples: Vec<String>sample invocations printed as a numbered list.
notes: Vec<String>quick tips / caveats shown as bullets.
Implementations§
Source§impl CommandDoc
impl CommandDoc
Trait Implementations§
Source§impl Clone for CommandDoc
impl Clone for CommandDoc
Source§fn clone(&self) -> CommandDoc
fn clone(&self) -> CommandDoc
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 CommandDoc
impl RefUnwindSafe for CommandDoc
impl Send for CommandDoc
impl Sync for CommandDoc
impl Unpin 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