pub struct CliDoc {
pub command: String,
pub usage: String,
pub description: String,
pub flags: Vec<CliFlagDoc>,
}Expand description
Serializable documentation for an action’s CLI surface.
Fields§
§command: StringSubcommand name.
usage: StringUsage string shown in help.
description: StringHuman-readable description of the subcommand.
flags: Vec<CliFlagDoc>Flags accepted by the subcommand.
Trait Implementations§
impl Eq for CliDoc
impl StructuralPartialEq for CliDoc
Auto Trait Implementations§
impl Freeze for CliDoc
impl RefUnwindSafe for CliDoc
impl Send for CliDoc
impl Sync for CliDoc
impl Unpin for CliDoc
impl UnsafeUnpin for CliDoc
impl UnwindSafe for CliDoc
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.