pub struct ScannerSettings {
pub options: ForbiddenStringsOptions,
pub rules_variable: Option<OsString>,
}Expand description
What:
Where the rules come from:
the policy’s options and the value of
FORBIDDEN_STRINGS_RULES in the invocation’s environment.
Why:
The lifecycle reads both once;
the check resolves them against the repository
root only when it scans.
In TS you’d write (pseudocode):
type ScannerSettings = { options: ForbiddenStringsOptions; rulesVariable?: string };Fields§
§options: ForbiddenStringsOptionsThe policy’s validated options; defaults until the configuration is loaded.
rules_variable: Option<OsString>The value of FORBIDDEN_STRINGS_RULES,
when the variable is set.
Trait Implementations§
Source§impl Clone for ScannerSettings
impl Clone for ScannerSettings
Source§impl Debug for ScannerSettings
impl Debug for ScannerSettings
impl Eq for ScannerSettings
Source§impl PartialEq for ScannerSettings
impl PartialEq for ScannerSettings
impl StructuralPartialEq for ScannerSettings
Auto Trait Implementations§
impl Freeze for ScannerSettings
impl RefUnwindSafe for ScannerSettings
impl Send for ScannerSettings
impl Sync for ScannerSettings
impl Unpin for ScannerSettings
impl UnsafeUnpin for ScannerSettings
impl UnwindSafe for ScannerSettings
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