pub struct ForbiddenStringsOptions {
pub builtin_rules: bool,
pub rules_file: Option<String>,
}Expand description
What:
Validated options of security/forbidden-strings.
Option<String> is “a
configured file name or nothing”.
Why:
The scanner is linked into cli-git,
so the remaining choices are whether its
embedded baseline rules run and which repository file holds the private rules.
There is deliberately no executable path.
In TS you’d write (pseudocode):
type ForbiddenStringsOptions = { builtinRules: boolean; rulesFile?: string };Fields§
§builtin_rules: boolWhether the scanner’s embedded baseline rules are loaded;
default true.
rules_file: Option<String>The private rules file,
relative to the repository’s top level,
already checked to
stay inside it;
when absent,
FORBIDDEN_STRINGS_RULES and then the default file apply.
Trait Implementations§
Source§impl Clone for ForbiddenStringsOptions
impl Clone for ForbiddenStringsOptions
Source§impl Debug for ForbiddenStringsOptions
impl Debug for ForbiddenStringsOptions
impl Eq for ForbiddenStringsOptions
Source§impl PartialEq for ForbiddenStringsOptions
impl PartialEq for ForbiddenStringsOptions
impl StructuralPartialEq for ForbiddenStringsOptions
Auto Trait Implementations§
impl Freeze for ForbiddenStringsOptions
impl RefUnwindSafe for ForbiddenStringsOptions
impl Send for ForbiddenStringsOptions
impl Sync for ForbiddenStringsOptions
impl Unpin for ForbiddenStringsOptions
impl UnsafeUnpin for ForbiddenStringsOptions
impl UnwindSafe for ForbiddenStringsOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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