pub struct FileSelectionArgs {
pub exclude: Vec<String>,
pub extend_exclude: Vec<String>,
/* private fields */
}Expand description
File-discovery and exclusion flags shared by multiple commands.
Fields§
§exclude: Vec<String>List of paths, used to omit files and/or directories from analysis.
extend_exclude: Vec<String>Like –exclude, but adds additional files and directories on top of those already excluded.
Implementations§
Source§impl FileSelectionArgs
impl FileSelectionArgs
Sourcepub fn respect_gitignore(&self) -> bool
pub fn respect_gitignore(&self) -> bool
Resolve the effective respect_gitignore setting after CLI overrides.
Sourcepub fn force_exclude(&self) -> bool
pub fn force_exclude(&self) -> bool
Resolve the effective force_exclude setting after CLI overrides.
Trait Implementations§
Source§impl Args for FileSelectionArgs
impl Args for FileSelectionArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for FileSelectionArgs
impl Clone for FileSelectionArgs
Source§fn clone(&self) -> FileSelectionArgs
fn clone(&self) -> FileSelectionArgs
Returns a duplicate 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 moreSource§impl Debug for FileSelectionArgs
impl Debug for FileSelectionArgs
Source§impl Default for FileSelectionArgs
impl Default for FileSelectionArgs
Source§fn default() -> FileSelectionArgs
fn default() -> FileSelectionArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for FileSelectionArgs
impl FromArgMatches for FileSelectionArgs
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for FileSelectionArgs
impl RefUnwindSafe for FileSelectionArgs
impl Send for FileSelectionArgs
impl Sync for FileSelectionArgs
impl Unpin for FileSelectionArgs
impl UnsafeUnpin for FileSelectionArgs
impl UnwindSafe for FileSelectionArgs
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