pub struct Arg {
pub name: String,
pub help: String,
pub required: bool,
pub variadic: bool,
}Expand description
A positional argument to a command, e.g. the <name> in uff create <name>.
Fields§
§name: String§help: String§required: bool§variadic: boolIf true, this argument soaks up all remaining positionals (variadic).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Arg
impl Freeze for Arg
impl Move for Arg
impl RefUnwindSafe for Arg
impl Send for Arg
impl Sync for Arg
impl Unpin for Arg
impl UnsafeUnpin for Arg
impl UnwindSafe for Arg
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