pub struct ScannerConfig {
pub disabled: bool,
pub custom_patterns: Vec<String>,
}Expand description
Configuration for the credential scanner.
Controls whether scanning is enabled and allows adding custom literal patterns beyond the built-in set.
Fields§
§disabled: boolWhen true, scanning is disabled and CredentialScanner::scan always
returns an empty ScanResult.
custom_patterns: Vec<String>Additional literal prefixes to detect as CredentialKind::Custom.
Each string is compiled into the Aho-Corasick automaton alongside the
built-in patterns.
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 (const: unstable) · 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§fn default() -> ScannerConfig
fn default() -> ScannerConfig
Returns the “default value” for a type. 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 UnsafeUnpin 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