pub struct Grammar {
pub flags: Vec<FlagSpec>,
pub required: Vec<String>,
}Expand description
The introspected grammar of a tool or built-in check: every long flag’s
spec, plus the names of all clap-required arguments — flags and positionals
(named by their field id, e.g. path/probe). The single source of truth
behind the published docs/explain schema (a test reconciles the two) and
the valid-flags hint on a bad argument.
Fields§
§flags: Vec<FlagSpec>§required: Vec<String>Auto Trait Implementations§
impl Freeze for Grammar
impl RefUnwindSafe for Grammar
impl Send for Grammar
impl Sync for Grammar
impl Unpin for Grammar
impl UnsafeUnpin for Grammar
impl UnwindSafe for Grammar
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