[][src]Trait structopt_flags::GetWithDefault

pub trait GetWithDefault {
    type Item;
    fn get_with_default<T: Into<Self::Item>>(&self, default: T) -> Self::Item;
}

This trait is designed to provide a rude form of default value for options If an option doesn't have a default value, it will implement this trait

Associated Types

type Item

Loading content...

Required methods

fn get_with_default<T: Into<Self::Item>>(&self, default: T) -> Self::Item

This function can be used to retrieve the value of the command line option taking in account the default value used as argument

Loading content...

Implementors

impl GetWithDefault for ConfigFileNoDef[src]

type Item = PathBuf

impl GetWithDefault for HostOpt[src]

type Item = IpAddr

impl GetWithDefault for HostV4Opt[src]

type Item = Ipv4Addr

impl GetWithDefault for HostV6Opt[src]

type Item = Ipv6Addr

impl GetWithDefault for LogLevelNoDef[src]

type Item = LevelFilter

impl GetWithDefault for LogLevelNoDefLower[src]

type Item = LevelFilter

impl GetWithDefault for VerboseNoDef[src]

type Item = LevelFilter

Loading content...