#[non_exhaustive]pub struct Config {
pub input: Input,
pub output: Output,
pub recursive: u8,
pub tags: Tags,
pub zip: bool,
pub unzip: bool,
pub force: bool,
pub exit_on_err: bool,
}Expand description
Clean configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input: Input§output: Output§recursive: u8§zip: bool§unzip: bool§force: bool§exit_on_err: boolImplementations§
Trait Implementations§
Source§impl CommandFactory for Config
impl CommandFactory for Config
Source§impl FromArgMatches for Config
impl FromArgMatches for Config
Source§fn from_arg_matches(m: &ArgMatches) -> Result<Config, Error>
fn from_arg_matches(m: &ArgMatches) -> Result<Config, Error>
Source§fn update_from_arg_matches(&mut self, m: &ArgMatches) -> Result<(), Error>
fn update_from_arg_matches(&mut self, m: &ArgMatches) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn from_arg_matches_mut(m: &mut ArgMatches) -> Result<Config, Error>
fn from_arg_matches_mut(m: &mut ArgMatches) -> Result<Config, Error>
Source§fn update_from_arg_matches_mut(
&mut self,
m: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, m: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for Config
impl Parser for Config
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.