pub struct Parameter { /* fields omitted */ }
Expand description
Create a new command parameter with the given name
Set whether the parameter is required, default is not required.
Note that you cannot have a required parameter after a non-required one
Set a default for an optional parameter.
Note that you can’t have a default for a required parameter
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.