Trait structopt_yaml::StructOptYaml[][src]

pub trait StructOptYaml {
    fn merge<'a>(
        from_yaml: Self,
        from_args: Self,
        args: &ArgMatches<'_>
    ) -> Self
    where
        Self: Sized,
        Self: StructOpt,
        Self: Deserialize<'a>
; fn from_clap_with_yaml(
        yaml_str: &str,
        args: &ArgMatches<'_>
    ) -> Result<Self, Error>
    where
        Self: Sized,
        Self: StructOpt,
        Self: DeserializeOwned
, { ... }
fn from_args_with_yaml<'a>(yaml_str: &'a str) -> Result<Self, Error>
    where
        Self: Sized,
        Self: StructOpt,
        Self: DeserializeOwned
, { ... }
fn from_iter_with_yaml<'a, I>(
        yaml_str: &'a str,
        iter: I
    ) -> Result<Self, Error>
    where
        Self: Sized,
        Self: StructOpt,
        Self: DeserializeOwned,
        I: IntoIterator,
        I::Item: Into<OsString> + Clone
, { ... } }

Required methods

fn merge<'a>(from_yaml: Self, from_args: Self, args: &ArgMatches<'_>) -> Self where
    Self: Sized,
    Self: StructOpt,
    Self: Deserialize<'a>, 
[src]

Merge the struct from YAML and the struct from args

Loading content...

Provided methods

fn from_clap_with_yaml(
    yaml_str: &str,
    args: &ArgMatches<'_>
) -> Result<Self, Error> where
    Self: Sized,
    Self: StructOpt,
    Self: DeserializeOwned
[src]

Creates the struct from clap::ArgMatches with initial values from YAML.

fn from_args_with_yaml<'a>(yaml_str: &'a str) -> Result<Self, Error> where
    Self: Sized,
    Self: StructOpt,
    Self: DeserializeOwned
[src]

Creates the struct from command line arguments with initial values from YAML.

fn from_iter_with_yaml<'a, I>(yaml_str: &'a str, iter: I) -> Result<Self, Error> where
    Self: Sized,
    Self: StructOpt,
    Self: DeserializeOwned,
    I: IntoIterator,
    I::Item: Into<OsString> + Clone
[src]

Creates the struct from iterator with initial values from YAML.

Loading content...

Implementors

Loading content...