pub struct ScanOptions {
pub exclude_dir_names: Vec<String>,
pub exclude_dir_suffixes: Vec<String>,
pub exclude_path_prefixes: Vec<String>,
pub language_overrides: BTreeMap<String, String>,
pub admit_optional_languages: bool,
}Expand description
Repository scanner configuration.
Fields§
§exclude_dir_names: Vec<String>Additional directory names to exclude.
exclude_dir_suffixes: Vec<String>Additional directory suffixes to exclude.
exclude_path_prefixes: Vec<String>Repository-relative path prefixes to exclude.
language_overrides: BTreeMap<String, String>Explicit filename or extension selectors mapped to canonical language IDs.
admit_optional_languages: boolWhether registry-known optional languages may be assigned to scanned files.
Implementations§
Source§impl ScanOptions
impl ScanOptions
Sourcepub fn excludes_relative_path(&self, relative_path: &str) -> bool
pub fn excludes_relative_path(&self, relative_path: &str) -> bool
Return whether a repository-relative slash path is excluded.
Trait Implementations§
Source§impl Clone for ScanOptions
impl Clone for ScanOptions
Source§fn clone(&self) -> ScanOptions
fn clone(&self) -> ScanOptions
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 ScanOptions
impl Debug for ScanOptions
Auto Trait Implementations§
impl Freeze for ScanOptions
impl RefUnwindSafe for ScanOptions
impl Send for ScanOptions
impl Sync for ScanOptions
impl Unpin for ScanOptions
impl UnwindSafe for ScanOptions
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