pub struct EffectiveConfig {Show 31 fields
pub format: OutputFormat,
pub strict: bool,
pub warn_only: bool,
pub min_severity: Option<Severity>,
pub min_rule_severity: Option<RuleSeverity>,
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,
pub watch: bool,
pub output: Option<String>,
pub fix: bool,
pub fix_dry_run: bool,
pub malware_db: Option<String>,
pub custom_rules: Option<String>,
pub remote: Option<String>,
pub git_ref: String,
pub remote_auth: Option<String>,
pub parallel_clones: usize,
pub badge: bool,
pub badge_format: BadgeFormat,
pub summary: bool,
pub all_clients: bool,
pub client: Option<ClientType>,
pub no_cve_scan: bool,
pub cve_db: Option<String>,
}Expand description
Effective scan configuration after merging CLI and config file.
Fields§
§format: OutputFormat§strict: bool§warn_only: bool§min_severity: Option<Severity>§min_rule_severity: Option<RuleSeverity>§scan_type: ScanType§recursive: bool§ci: bool§verbose: bool§min_confidence: Confidence§skip_comments: bool§fix_hint: bool§no_malware_scan: bool§deep_scan: bool§watch: bool§output: Option<String>§fix: bool§fix_dry_run: bool§malware_db: Option<String>§custom_rules: Option<String>§remote: Option<String>§git_ref: String§remote_auth: Option<String>§parallel_clones: usize§badge: bool§badge_format: BadgeFormat§summary: bool§all_clients: bool§client: Option<ClientType>§no_cve_scan: bool§cve_db: Option<String>Implementations§
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
- Path options: CLI takes precedence, fallback to config
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