[−][src]Struct combu::command::Command
Fields
name: String
action: Option<Action>
copyright: String
description: Option<String>
usage: String
l_flags: Vector<Flag>
c_flags: Vector<Flag>
version: String
sub: Vector<Command>
opt_values: Vector<KeyValuePair>
Methods
impl Command
[src]
pub fn new() -> Command
[src]
pub fn build_new(
name: String,
action: Option<Action>,
authors: String,
copyright: String,
description: Option<String>,
usage: String,
local_flags: Vector<Flag>,
common_flags: Vector<Flag>,
version: String,
sub: Vector<Command>,
opt_values: Vector<(String, String)>
) -> Command
[src]
name: String,
action: Option<Action>,
authors: String,
copyright: String,
description: Option<String>,
usage: String,
local_flags: Vector<Flag>,
common_flags: Vector<Flag>,
version: String,
sub: Vector<Command>,
opt_values: Vector<(String, String)>
) -> Command
pub fn run_with_auto_arg_collect(self)
[src]
pub fn single_run(self, args: Vec<String>)
[src]
pub fn show_help(self)
[src]
pub fn name<T: Into<String>>(self, name: T) -> Command
[src]
pub fn usage<T: Into<String>>(self, usage: T) -> Self
[src]
pub fn action(self, action: Action) -> Self
[src]
pub fn authors<T: Into<String>>(self, authors: T) -> Self
[src]
pub fn copyright<T: Into<String>>(self, copyright: T) -> Self
[src]
pub fn local_flag(self, flag: Flag) -> Self
[src]
pub fn common_flag(self, flag: Flag) -> Self
[src]
pub fn desctiption<T: Into<String>>(self, description: T) -> Self
[src]
pub fn version<T: Into<String>>(self, version: T) -> Self
[src]
pub fn sub_command(self, sub_command: Command) -> Self
[src]
pub fn add_opt_prop(self, opt_prop: KeyValuePair) -> Self
[src]
Trait Implementations
impl Clone for Command
[src]
impl Default for Command
[src]
impl From<String> for Command
[src]
impl Run<Context> for Command
[src]
impl Run<Vec<String>> for Command
[src]
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,