#[non_exhaustive]pub struct SecretRules {
pub prefixes: &'static [PrefixRule],
pub pem: &'static [PemRule],
pub url_credentials: bool,
pub json_web_tokens: bool,
pub assignments: bool,
pub entropy: Option<EntropyRule>,
}Expand description
Which detectors run, and how the threshold one is tuned (B-5).
non_exhaustive so a later detector toggle is not a breaking change: start
from SecretRules::default and narrow field by field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.prefixes: &'static [PrefixRule]The prefix table. Defaults to PREFIX_RULES.
pem: &'static [PemRule]The armour table. Defaults to PEM_RULES.
url_credentials: boolWhether a credential in a URL’s userinfo is a finding.
json_web_tokens: boolWhether a JSON Web Token is a finding.
assignments: boolWhether an api_key = <value> style assignment is a finding.
entropy: Option<EntropyRule>The threshold detector, or None to run only the patterns.
Trait Implementations§
Source§impl Clone for SecretRules
impl Clone for SecretRules
Source§impl Debug for SecretRules
impl Debug for SecretRules
Source§impl Default for SecretRules
impl Default for SecretRules
impl Eq for SecretRules
Source§impl PartialEq for SecretRules
impl PartialEq for SecretRules
impl StructuralPartialEq for SecretRules
Auto Trait Implementations§
impl Forget for SecretRules
impl Freeze for SecretRules
impl Move for SecretRules
impl RefUnwindSafe for SecretRules
impl Send for SecretRules
impl Sync for SecretRules
impl Unpin for SecretRules
impl UnsafeUnpin for SecretRules
impl UnwindSafe for SecretRules
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