pub struct DiscoveryConfig {
pub respect_gitignore: bool,
pub max_file_bytes: u64,
pub header_policy: HeaderPolicy,
pub languages: LanguageSelection,
pub generated_markers: GeneratedMarkers,
pub compile_commands: Option<PathBuf>,
pub follow_links: bool,
}Expand description
Settings that control a discovery run.
Fields§
§respect_gitignore: boolHonour .gitignore and related ignore files (default true).
max_file_bytes: u64Per-file size ceiling in bytes.
header_policy: HeaderPolicyHow to classify bare .h headers.
languages: LanguageSelectionLanguages to enumerate.
generated_markers: GeneratedMarkersMarkers that flag a file as generated.
compile_commands: Option<PathBuf>Compilation database to use instead of an automatically discovered
compile_commands.json.
follow_links: boolWhether the source walker follows symbolic links.
Trait Implementations§
Source§impl Clone for DiscoveryConfig
impl Clone for DiscoveryConfig
Source§fn clone(&self) -> DiscoveryConfig
fn clone(&self) -> DiscoveryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DiscoveryConfig
impl Debug for DiscoveryConfig
Auto Trait Implementations§
impl Freeze for DiscoveryConfig
impl RefUnwindSafe for DiscoveryConfig
impl Send for DiscoveryConfig
impl Sync for DiscoveryConfig
impl Unpin for DiscoveryConfig
impl UnsafeUnpin for DiscoveryConfig
impl UnwindSafe for DiscoveryConfig
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