pub struct ClapArg {
pub id: String,
pub long: Option<String>,
pub short: Option<char>,
pub help: Option<String>,
pub long_help: Option<String>,
pub required: bool,
pub global: bool,
pub index: Option<usize>,
pub action: Option<String>,
pub value_names: Vec<String>,
pub num_args: Option<String>,
}Expand description
Serializable representation of a clap argument.
Fields§
§id: String§long: Option<String>§short: Option<char>§help: Option<String>§long_help: Option<String>§required: bool§global: bool§index: Option<usize>§action: Option<String>§value_names: Vec<String>§num_args: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ClapArg
impl<'de> Deserialize<'de> for ClapArg
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 ClapArg
impl RefUnwindSafe for ClapArg
impl Send for ClapArg
impl Sync for ClapArg
impl Unpin for ClapArg
impl UnsafeUnpin for ClapArg
impl UnwindSafe for ClapArg
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