pub struct ScanConfig {
pub format: Option<String>,
pub strict: bool,
pub scan_type: Option<String>,
pub recursive: bool,
pub ci: bool,
pub verbose: bool,
pub min_confidence: Option<String>,
pub skip_comments: bool,
pub fix_hint: bool,
pub no_malware_scan: bool,
}Expand description
Scan configuration (corresponds to CLI options)
Fields§
§format: Option<String>Output format: “terminal”, “json”, “sarif”, “html”
strict: boolStrict mode: show medium/low severity findings and treat warnings as errors
scan_type: Option<String>Scan type: “skill”, “hook”, “mcp”, “command”, “rules”, “docker”, “dependency”
recursive: boolRecursive scan
ci: boolCI mode: non-interactive output
verbose: boolVerbose output
min_confidence: Option<String>Minimum confidence level: “tentative”, “firm”, “certain”
skip_comments: boolSkip comment lines when scanning
fix_hint: boolShow fix hints in terminal output
no_malware_scan: boolDisable malware signature scanning
Trait Implementations§
Source§impl Clone for ScanConfig
impl Clone for ScanConfig
Source§fn clone(&self) -> ScanConfig
fn clone(&self) -> ScanConfig
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 ScanConfig
impl Debug for ScanConfig
Source§impl Default for ScanConfig
impl Default for ScanConfig
Source§fn default() -> ScanConfig
fn default() -> ScanConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScanConfigwhere
ScanConfig: Default,
impl<'de> Deserialize<'de> for ScanConfigwhere
ScanConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScanConfig
impl RefUnwindSafe for ScanConfig
impl Send for ScanConfig
impl Sync for ScanConfig
impl Unpin for ScanConfig
impl UnwindSafe for ScanConfig
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