pub struct Command {
pub key: String,
pub path: Vec<String>,
pub leaf: bool,
pub hidden: bool,
pub foreign: bool,
pub generates: Option<bool>,
pub args: Vec<Arg>,
}Expand description
One subcommand path.
Fields§
§key: String§path: Vec<String>§leaf: bool§foreign: bool§generates: Option<bool>D2 (#3745): does the command GENERATE text — read from a typed marker in S1, never inferred. None when
the surface predates the field.
args: Vec<Arg>Implementations§
Source§impl Command
impl Command
pub fn takes_model(&self) -> bool
Sourcepub fn input_shapes(&self) -> Vec<&Arg>
pub fn input_shapes(&self) -> Vec<&Arg>
The input shapes: every prompt / input-file arg, by spelling.
Trait Implementations§
impl Eq for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Forget for Command
impl Freeze for Command
impl Move for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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.