Struct exonum::helpers::fabric::Argument
[−]
[src]
pub struct Argument { pub name: &'static str, pub argument_type: ArgumentType, pub required: bool, pub help: &'static str, }
Abstraction to represent arguments in command line.
Fields
name: &'static str
Name of the current argument. This name is used in context.arg(name)
.
argument_type: ArgumentType
Explains how this argument is represented.
required: bool
Explains if the argument required or not.
help: &'static str
Help message.
Methods
impl Argument
[src]
fn new_named<T>(
name: &'static str,
required: bool,
help: &'static str,
short_name: T,
long_name: &'static str,
multiple: bool
) -> Argument where
T: Into<Option<&'static str>>,
name: &'static str,
required: bool,
help: &'static str,
short_name: T,
long_name: &'static str,
multiple: bool
) -> Argument where
T: Into<Option<&'static str>>,
Creates a new argument with long
and optionally short
names.
fn new_positional(
name: &'static str,
required: bool,
help: &'static str
) -> Argument
name: &'static str,
required: bool,
help: &'static str
) -> Argument
Creates a new positional argument.
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