pub struct RuleBasedAnalyzer { /* private fields */ }Expand description
Rule-based security analyzer that maps tool names and argument patterns to risk levels.
Implementations§
Source§impl RuleBasedAnalyzer
impl RuleBasedAnalyzer
pub fn new() -> Self
Sourcepub fn with_default_risk(self, risk: RiskLevel) -> Self
pub fn with_default_risk(self, risk: RiskLevel) -> Self
Set the default risk level for unknown tools.
Sourcepub fn with_tool_risk(
self,
tool_name: impl Into<String>,
risk: RiskLevel,
) -> Self
pub fn with_tool_risk( self, tool_name: impl Into<String>, risk: RiskLevel, ) -> Self
Set the risk level for a specific tool.
Trait Implementations§
Source§impl Default for RuleBasedAnalyzer
impl Default for RuleBasedAnalyzer
Source§impl SecurityAnalyzer for RuleBasedAnalyzer
impl SecurityAnalyzer for RuleBasedAnalyzer
Auto Trait Implementations§
impl Freeze for RuleBasedAnalyzer
impl RefUnwindSafe for RuleBasedAnalyzer
impl Send for RuleBasedAnalyzer
impl Sync for RuleBasedAnalyzer
impl Unpin for RuleBasedAnalyzer
impl UnsafeUnpin for RuleBasedAnalyzer
impl UnwindSafe for RuleBasedAnalyzer
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