Struct pythonic::argument::Argument [] [src]

pub struct Argument {
    pub name: Option<String>,
    pub default: Option<String>,
    pub value: Option<String>,
    pub arg_type: Option<String>,
    pub help: Option<String>,
    // some fields omitted
}

Fields

name: Option<String> default: Option<String> value: Option<String> arg_type: Option<String> help: Option<String>

Methods

impl Argument
[src]

fn new<T: Display>(name: T, default: Option<T>, arg_type: Option<T>, help: Option<T>) -> Argument

fn bare<T: Display>(value: T) -> Argument

fn input<T: Display>(name: T) -> Argument

fn has_help(&self) -> bool

fn help_string(&self) -> String

Trait Implementations

impl Clone for Argument
[src]

fn clone(&self) -> Argument

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Debug for Argument
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Display for Argument
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.