pub struct SecretPatternManager { /* private fields */ }
Expand description
Manager for organizing security patterns by tool/service
Implementations§
Source§impl SecretPatternManager
impl SecretPatternManager
pub fn new() -> Result<Self, Error>
Sourcepub fn get_tool_patterns(&self, tool: &str) -> Option<&Vec<ToolPattern>>
pub fn get_tool_patterns(&self, tool: &str) -> Option<&Vec<ToolPattern>>
Get patterns for a specific tool
Sourcepub fn get_generic_patterns(&self) -> &Vec<GenericPattern>
pub fn get_generic_patterns(&self) -> &Vec<GenericPattern>
Get all generic patterns
Sourcepub fn get_supported_tools(&self) -> Vec<String>
pub fn get_supported_tools(&self) -> Vec<String>
Get all supported tools
Sourcepub fn get_js_framework_patterns(&self) -> Vec<&ToolPattern>
pub fn get_js_framework_patterns(&self) -> Vec<&ToolPattern>
Get patterns for JavaScript/TypeScript frameworks
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SecretPatternManager
impl RefUnwindSafe for SecretPatternManager
impl Send for SecretPatternManager
impl Sync for SecretPatternManager
impl Unpin for SecretPatternManager
impl UnwindSafe for SecretPatternManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more