Struct argparsnip::Arg[][src]

pub struct Arg<'a> {
    pub name: &'a str,
    pub short: Option<&'a str>,
    pub long: Option<&'a str>,
    pub about: &'a str,
    pub num_values: NumValues,
    pub value_name: Option<&'a str>,
    pub default: Option<fn() -> Value>,
    pub required: bool,
    pub value_type: Type,
    pub validation: fn(_: &Value) -> Result<(), String>,
}

Fields

name: &'a strshort: Option<&'a str>long: Option<&'a str>about: &'a strnum_values: NumValuesvalue_name: Option<&'a str>default: Option<fn() -> Value>required: boolvalue_type: Typevalidation: fn(_: &Value) -> Result<(), String>

Trait Implementations

impl<'a> Default for Arg<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Arg<'a>

impl<'a> Send for Arg<'a>

impl<'a> Sync for Arg<'a>

impl<'a> Unpin for Arg<'a>

impl<'a> UnwindSafe for Arg<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<'a, T> Handler<'a, T> for T where
    T: Default
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.