pub struct TaskOption {
pub usage: Option<String>,
pub short: Option<String>,
pub option_type: String,
pub default: Option<String>,
pub required: bool,
pub rewrite: Option<String>,
pub environment: Option<String>,
pub private: bool,
}Expand description
An option (flag) definition
Fields§
§usage: Option<String>Usage description for help text
short: Option<String>Short flag (single character)
option_type: StringOption type (string, bool, integer, etc.)
default: Option<String>Default value
required: boolRequired option
rewrite: Option<String>Values to pass instead of the raw option value
environment: Option<String>Environment variable to read from
private: boolPrivate option (hidden from help)
Trait Implementations§
Source§impl Clone for TaskOption
impl Clone for TaskOption
Source§fn clone(&self) -> TaskOption
fn clone(&self) -> TaskOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TaskOption
impl Debug for TaskOption
Source§impl<'de> Deserialize<'de> for TaskOption
impl<'de> Deserialize<'de> for TaskOption
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TaskOption
impl RefUnwindSafe for TaskOption
impl Send for TaskOption
impl Sync for TaskOption
impl Unpin for TaskOption
impl UnwindSafe for TaskOption
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