pub struct SecurityRiskPatterns { /* private fields */ }Expand description
Security risk pattern matcher.
Implementations§
Source§impl SecurityRiskPatterns
impl SecurityRiskPatterns
Sourcepub fn new_with_root(language: Language, root_dir: Option<&Path>) -> Self
pub fn new_with_root(language: Language, root_dir: Option<&Path>) -> Self
Create a new pattern matcher with a custom root directory for patterns.
Sourcepub fn get_attack_vectors(&self, _content: &str) -> Vec<String>
pub fn get_attack_vectors(&self, _content: &str) -> Vec<String>
Get attack vectors for content.
Sourcepub fn get_pattern_matches(&self, content: &str) -> Vec<PatternMatch>
pub fn get_pattern_matches(&self, content: &str) -> Vec<PatternMatch>
Get all pattern matches in content.
Auto Trait Implementations§
impl Freeze for SecurityRiskPatterns
impl RefUnwindSafe for SecurityRiskPatterns
impl Send for SecurityRiskPatterns
impl Sync for SecurityRiskPatterns
impl Unpin for SecurityRiskPatterns
impl UnsafeUnpin for SecurityRiskPatterns
impl UnwindSafe for SecurityRiskPatterns
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