pub struct Opt {
pub name: &'static str,
pub value: Option<&'static str>,
pub values: &'static [&'static str],
pub help: &'static str,
}Expand description
An option of a command: --no-example, or --front <framework>.
Fields§
§name: &'static str§value: Option<&'static str>What the value is called in help (framework), for an option that takes one.
values: &'static [&'static str]The values accepted, when they are a fixed list.
help: &'static strImplementations§
Auto Trait Implementations§
impl Freeze for Opt
impl RefUnwindSafe for Opt
impl Send for Opt
impl Sync for Opt
impl Unpin for Opt
impl UnsafeUnpin for Opt
impl UnwindSafe for Opt
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