pub struct ScannerConfig {
pub enable_malware_scan: bool,
pub enable_dependency_scan: bool,
pub enable_static_analysis: bool,
pub enable_license_check: bool,
pub max_file_size: u64,
pub timeout_per_file: u64,
pub allowed_licenses: Vec<String>,
pub fail_on_severity: Severity,
}Expand description
Security scanner configuration
Fields§
§enable_malware_scan: boolEnable malware detection
enable_dependency_scan: boolEnable dependency vulnerability scanning
enable_static_analysis: boolEnable static code analysis
enable_license_check: boolEnable license compliance check
max_file_size: u64Maximum file size to scan (bytes)
timeout_per_file: u64Timeout per file (seconds)
allowed_licenses: Vec<String>Allowed licenses
fail_on_severity: SeveritySeverity threshold for failure
Trait Implementations§
Source§impl Clone for ScannerConfig
impl Clone for ScannerConfig
Source§fn clone(&self) -> ScannerConfig
fn clone(&self) -> ScannerConfig
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 ScannerConfig
impl Debug for ScannerConfig
Source§impl Default for ScannerConfig
impl Default for ScannerConfig
Source§impl<'de> Deserialize<'de> for ScannerConfig
impl<'de> Deserialize<'de> for ScannerConfig
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 ScannerConfig
impl RefUnwindSafe for ScannerConfig
impl Send for ScannerConfig
impl Sync for ScannerConfig
impl Unpin for ScannerConfig
impl UnwindSafe for ScannerConfig
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