Trait structopt_toml::StructOptToml
[−]
[src]
pub trait StructOptToml { fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches) -> Self
where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>; fn from_clap_with_toml<'a>(toml_str: &'a str, args: &ArgMatches) -> Self
where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>, { ... } fn from_args_with_toml<'a>(toml_str: &'a str) -> Self
where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>, { ... } fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Self
where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
I: IntoIterator,
I::Item: Into<OsString> + Clone, { ... } }
Required Methods
fn merge<'a>(from_toml: Self, from_args: Self, args: &ArgMatches) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Merge the struct from TOML and the struct from args
Provided Methods
fn from_clap_with_toml<'a>(toml_str: &'a str, args: &ArgMatches) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Creates the struct from clap::ArgMatches
with initial values from TOML.
fn from_args_with_toml<'a>(toml_str: &'a str) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
Creates the struct from command line arguments with initial values from TOML.
fn from_iter_with_toml<'a, I>(toml_str: &'a str, iter: I) -> Self where
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
I: IntoIterator,
I::Item: Into<OsString> + Clone,
Self: Sized,
Self: StructOpt,
Self: Deserialize<'a>,
I: IntoIterator,
I::Item: Into<OsString> + Clone,
Creates the struct from iterator with initial values from TOML.