Enum config_manager::ClapSource
source · pub enum ClapSource {
None,
Args(Vec<String>),
Matches(ArgMatches),
}Expand description
Replacement of the command line source.
Variants§
None
Same as ClapSource::Args(Vec::new()).
Args(Vec<String>)
Values of the command line source will be got from the passed arguments (like they were the command line arguments).
Can be useful in testing.
Matches(ArgMatches)
Values of the command line source will be got from the passed ArgMatches.
Can be useful if the configuration is a subcommand of the main programm.
Trait Implementations§
source§impl Clone for ClapSource
impl Clone for ClapSource
source§fn clone(&self) -> ClapSource
fn clone(&self) -> ClapSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more