#[non_exhaustive]pub struct Config {
pub input: Input,
pub output: Output,
pub recursive: u8,
pub tags: Tags,
pub zip: bool,
pub unzip: bool,
pub overwrite: bool,
pub exit_on_err: bool,
pub jobs: u64,
}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§overwrite: bool§exit_on_err: bool§jobs: u64Implementations§
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.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more