#[non_exhaustive]pub struct SubcommandSpec {
pub name: String,
pub summary: Option<String>,
pub args: Vec<ArgSpec>,
pub flags: Vec<FlagSpec>,
pub examples: &'static [&'static str],
pub json_mode: JsonMode,
pub feature_gated: Option<&'static str>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: String§summary: Option<String>§args: Vec<ArgSpec>§flags: Vec<FlagSpec>§examples: &'static [&'static str]Hand-maintained canonical invocations.
json_mode: JsonModeHow this command interacts with --mode json. See JsonMode.
feature_gated: Option<&'static str>Cargo feature this subcommand is gated behind, if any.
Trait Implementations§
Source§impl Debug for SubcommandSpec
impl Debug for SubcommandSpec
Auto Trait Implementations§
impl Freeze for SubcommandSpec
impl RefUnwindSafe for SubcommandSpec
impl Send for SubcommandSpec
impl Sync for SubcommandSpec
impl Unpin for SubcommandSpec
impl UnsafeUnpin for SubcommandSpec
impl UnwindSafe for SubcommandSpec
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