pub struct EffectiveConfig {
pub format: OutputFormat,
pub strict: bool,
pub scan_type: ScanType,
pub recursive: bool,
pub ci: bool,
pub verbose: bool,
pub min_confidence: Confidence,
pub skip_comments: bool,
pub fix_hint: bool,
pub no_malware_scan: bool,
pub deep_scan: bool,
}Expand description
Effective scan configuration after merging CLI and config file
Fields§
§format: OutputFormat§strict: bool§scan_type: ScanType§recursive: bool§ci: bool§verbose: bool§min_confidence: Confidence§skip_comments: bool§fix_hint: bool§no_malware_scan: bool§deep_scan: boolImplementations§
Source§impl EffectiveConfig
impl EffectiveConfig
Sourcepub fn from_cli_and_config(cli: &Cli, config: &Config) -> Self
pub fn from_cli_and_config(cli: &Cli, config: &Config) -> Self
Merge CLI options with config file settings Boolean flags: CLI OR config (either can enable) Enum options: config provides defaults, CLI always takes precedence
Trait Implementations§
Source§impl Clone for EffectiveConfig
impl Clone for EffectiveConfig
Source§fn clone(&self) -> EffectiveConfig
fn clone(&self) -> EffectiveConfig
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 Freeze for EffectiveConfig
impl RefUnwindSafe for EffectiveConfig
impl Send for EffectiveConfig
impl Sync for EffectiveConfig
impl Unpin for EffectiveConfig
impl UnwindSafe for EffectiveConfig
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