pub struct GeneratedEntry {
pub name: String,
pub standalone: Vec<String>,
pub max_positional: usize,
pub level: String,
pub subs: Vec<GeneratedSub>,
}Expand description
A scoped custom-command entry for one unknown command name.
When every observed use starts with a plain word (mytool sync), that word is a SUBCOMMAND and
the entry lists each one as a [[command.sub]] with its own flags and count. Otherwise the
entry is flat. Flat is what this always was, and it read deploytool status as “deploytool with
any one argument”, which also admits deploytool destroy. Naming the word keeps an entry to
what was actually run.
Fields§
§name: String§standalone: Vec<String>Observed flags, sorted and de-duplicated (every --prefixed argument, verbatim). Empty
when subs is not.
max_positional: usizeThe largest positional-argument count observed across occurrences. Zero when subs is not
empty.
level: String§subs: Vec<GeneratedSub>The subcommands observed, sorted by name. Empty for a flat entry.
Trait Implementations§
Source§impl Clone for GeneratedEntry
impl Clone for GeneratedEntry
Source§impl Debug for GeneratedEntry
impl Debug for GeneratedEntry
impl Eq for GeneratedEntry
Source§impl PartialEq for GeneratedEntry
impl PartialEq for GeneratedEntry
impl StructuralPartialEq for GeneratedEntry
Auto Trait Implementations§
impl Freeze for GeneratedEntry
impl RefUnwindSafe for GeneratedEntry
impl Send for GeneratedEntry
impl Sync for GeneratedEntry
impl Unpin for GeneratedEntry
impl UnsafeUnpin for GeneratedEntry
impl UnwindSafe for GeneratedEntry
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.