pub struct ArgSpec {
pub name: &'static str,
pub arg_type: &'static str,
pub description: &'static str,
pub io: IoDirection,
pub index: usize,
pub required: bool,
pub fallback_stream: Option<Stream>,
}Expand description
Metadata for a single command argument.
Fields§
§name: &'static str§arg_type: &'static str§description: &'static str§io: IoDirection§index: usize§required: bool§fallback_stream: Option<Stream>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