pub struct ScanConfig<'a> {
pub skip_changes: bool,
pub should_add_coverage: bool,
pub coverage_dir_override: Option<&'a Path>,
pub current_dir: &'a Path,
pub project_dir: Option<&'a Path>,
pub ignore_paths: Vec<PathBuf>,
}Expand description
Configuration options for scanning features
Fields§
§skip_changes: boolWhether to include git history (changes, commits, stats)
should_add_coverage: boolWhether to add coverage information to features
coverage_dir_override: Option<&'a Path>Optional override for coverage directory location If None, will search in multiple default locations
current_dir: &'a PathCurrent working directory (used for finding coverage)
project_dir: Option<&'a Path>Optional project directory (used for finding coverage)
ignore_paths: Vec<PathBuf>Paths to ignore (and all their subfolders) when scanning for features
Implementations§
Source§impl<'a> ScanConfig<'a>
impl<'a> ScanConfig<'a>
Sourcepub fn new(current_dir: &'a Path) -> Self
pub fn new(current_dir: &'a Path) -> Self
Create a new ScanConfig with minimal required parameters
Sourcepub fn skip_changes(self, skip: bool) -> Self
pub fn skip_changes(self, skip: bool) -> Self
Set whether to skip git history
Sourcepub fn with_coverage(self, should_add: bool) -> Self
pub fn with_coverage(self, should_add: bool) -> Self
Set whether to add coverage information
Sourcepub fn coverage_dir(self, dir: &'a Path) -> Self
pub fn coverage_dir(self, dir: &'a Path) -> Self
Set a specific coverage directory to use
Sourcepub fn project_dir(self, dir: &'a Path) -> Self
pub fn project_dir(self, dir: &'a Path) -> Self
Set the project directory for finding coverage
Sourcepub fn ignore_paths(self, paths: Vec<PathBuf>) -> Self
pub fn ignore_paths(self, paths: Vec<PathBuf>) -> Self
Set the paths to ignore (and all their subfolders) when scanning for features
Trait Implementations§
Source§impl<'a> Clone for ScanConfig<'a>
impl<'a> Clone for ScanConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScanConfig<'a>
impl<'a> RefUnwindSafe for ScanConfig<'a>
impl<'a> Send for ScanConfig<'a>
impl<'a> Sync for ScanConfig<'a>
impl<'a> Unpin for ScanConfig<'a>
impl<'a> UnsafeUnpin for ScanConfig<'a>
impl<'a> UnwindSafe for ScanConfig<'a>
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