pub struct OptionSpec {
pub long: String,
pub short: Option<char>,
pub aliases: Vec<String>,
pub doc: Doc,
pub value_name: Option<String>,
pub shape: OptionShape,
pub default: Option<SchemaValueTree>,
pub required: bool,
pub env_var: Option<String>,
}Expand description
Options and flags
Fields§
§long: String§short: Option<char>§aliases: Vec<String>§doc: Doc§value_name: Option<String>§shape: OptionShape§default: Option<SchemaValueTree>Default value, interpreted against the option’s type node in
tool.schema.
required: bool§env_var: Option<String>Trait Implementations§
Auto Trait Implementations§
impl Freeze for OptionSpec
impl RefUnwindSafe for OptionSpec
impl Send for OptionSpec
impl Sync for OptionSpec
impl Unpin for OptionSpec
impl UnsafeUnpin for OptionSpec
impl UnwindSafe for OptionSpec
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