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>,
}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)
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
Trait Implementations§
Source§impl<'a> Clone for ScanConfig<'a>
impl<'a> Clone for ScanConfig<'a>
Source§fn clone(&self) -> ScanConfig<'a>
fn clone(&self) -> ScanConfig<'a>
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 moreAuto 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