pub struct ArgSpec {
pub name: &'static str,
pub description: &'static str,
pub kind: ArgKind,
pub required: bool,
}Expand description
Argument specification for self-describing commands.
Defines metadata about a command argument including its name, type, description, and whether it’s required.
Fields§
§name: &'static strThe argument name (used in CommandContext::get).
description: &'static strHuman-readable description.
kind: ArgKindThe kind of argument.
required: boolWhether this argument is required.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArgSpec
impl RefUnwindSafe for ArgSpec
impl Send for ArgSpec
impl Sync for ArgSpec
impl Unpin for ArgSpec
impl UnsafeUnpin for ArgSpec
impl UnwindSafe for ArgSpec
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